public class Sample {
public static void main(String[] args) {
String names[][] = {
{ "Jasmine", "jasmine123" },
{ "lyka", "lyka123" },
{ "marbie", "marbie123" }
};
for (String name[] : names) {
for (String info : name) {
System.out.println(info);
}
System.out.println();
}
}
}
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
System.out.println("*");
}
System.out.println("");
}
public class Sample {
public static void main(String[] args) {
for (int x = 0; x < 5; x++) {
for (int y = 0; y < 5; y++) {
System.out.println(y);
}
System.out.println();
}
}
}
public class Sample {
public static void main(String[] args) {
String names[][] = {
{ "Jasmine", "jasmine123" },
{ "lyka", "lyka123" },
{ "marbie", "marbie123" }
};
for (int row = 0; row < names.length; row++) {
for (int col = 0; col < names[row].length; col++) {
System.out.println(row + ":" + col);
}
System.out.println();
}
}
}