I have the following as two ways to declare a two dimensional String array. I am being asked to find another way but I don’t think there is any other way. Can someone please give me some advice.
String[][] a = new String[20][20]
String a[][] = new String[20][20]
Thanks
Edit: Note that this works with methods too:
Also note that I do not recommend this notation as it is unclear and confusing!