How do I go about declaring variables in a 2D Java array that has 5 first names and 5 last names? This is what I think is correct but I am unsure:
String[][] flNames = new String[5][5];
Also how do I go about declaring variables for a 2D array that has 5 last names and 10 assignment names that can be either essays or labs, not both. This is what I have :
String[][] namesAssign = new String[5][10];