Do you mean something like this?
String[] strings = new String[1];
int len = strings[0].length();//NullPointerException, the value strings[0] was never initialized
string[0] = new...
Type: Posts; User: copeg
Do you mean something like this?
String[] strings = new String[1];
int len = strings[0].length();//NullPointerException, the value strings[0] was never initialized
string[0] = new...
Based upon that it sure looks like it compiles...a NullPointerException is a runtime exception ;) . Did you have a look at the link I posted above? You've created an array without initializing its...
Define can't display...does it compile? Are there any exceptions? (hint: see Common Java Mistakes)