public class Main {
public static void main(String[] args) {
//2D array = an array of arrays
String[][] cars = {
{"Camaro","Corvette","Silverado"},
{"Mustang", "Ranger", "F-150"},
{"Ferrari", "Lambo", "Tesla"}
};
for(int i=0; i<cars.length; i++) {
System.out.println();
for(int j=0; j<cars[i].length; j++) {
System.out.println(cars[i][j]+" ");
}
}
}
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)