My question is,can i check a place if null,or set a place to null in two dimensional String array with my 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 it possible?Or if wrong,how to do it.?Regards..
Yes. Since this is an array of objects (which is really just an array of memory addresses, you can indeed set them to null as that would be setting the address to 0). However if you have a two dimensional array of a primitive type, such as an int, then you cannot set positions to null.