Friends, please help with this question. Met this piece of code in java
public String saveComputingResult(int firstNumber, int secondNumber, String operation) { String[][] arr = new String[2][0]; //** arr[0] = new String[1]; //** arr[1] = new String[1]; //** arr[0][0] = getOperation(operation); arr[1][0] = Integer.toString(getComputingResult(firstNumber, secondNumber, operation)); return arr[0][0] + " - " + arr[1][0]; Who can explain the lines highlighted by the comment? A two-dimensional array of the String type is declared, it has two strings and .... 0 !!! columns. What is it like? What does this mean? There are no such examples in Schildt and Ekkele, there are only examples where the size of the array is indicated for the first array, since this is mandatory, and the second [] just remains empty, but what does it mean if there is 0 inside? And what do these lines mean in this ??
arr[0] = new String[1]; arr[1] = new String[1];