Ok, say I have the code:
Scanner scan = new Scanner(System.in);
while (scan.hasNext()) {
String str = scan.nextLine();
String[] ss = str.split(" ");
int[] zz = new int[ss.length];
for (int i = 0; i < ss.length; i++)
zz[i] = Integer.parseInt(ss[i]);
int[][] arr = {
zz
};
And I want to add zz every time into arr without removing the previous value. How would I go by on doing this?