Make strArr bigger so you can have more than 255 nulls:

     String strArr[] = new String[500];

No need to loop to set array elements to null as that's what they're initialized to.