I have created an array of strings but do no not initialise the values until required. How do i check to see if the array location contains a null value? I keep getting a null pointer exception when i check.
A string array component should be initialized before it is used.String[] array;for(int i=0; i<arraylength; i++)if(array(i)!=null)// Initialize array component>