I have an array int[][] r = new int[10][1000]
I want to remove any null values in the array and collapse it.
so if the array is {{5,3,null,2,null,80,90,348,38,null,...},...}
I want it to be {{5,3,2,80,90,348,38,...},...} (the length is changed as well)
I’m not looking for code or for you to do it for me, but can you point me in the right direction? I searched and couldn’t find anything like this.
Yup –
btw, you can’t have
nullelements inintarray