Strings Methods in Java
Strings Methods in Java
Output
Characters in the string:
H
e
l
l
o
scanner.close();
}
}
create a double array (array of arrays) of strings public class StringDoubleArrayExample {
in Java public static void main(String[] args) {
// Define a two-dimensional array of
strings
String[][] stringDoubleArray = {
{"apple", "banana", "cherry"},
{"orange", "grape", "pear"},
{"kiwi", "melon", "pineapple"}
};