Two Dimensional Arrays in Java Lang -


my question is,can check place if null,or set place null in 2 dimensional string array way.

string [][] xx=new string [][] public void set(int a,int b)   {  xx[a][b]=null;//setting null  }  .  .  .  .  .  if(xx[a][b]==null)//check if null   ///some codes  

İs possible?or if wrong,how it.?regards..

yes. since array of objects (which array of memory addresses, can indeed set them null setting address 0). if have 2 dimensional array of primitive type, such int, cannot set positions null.


Comments