Hi, this is an example from K&B SCJP6 page 458.
I'm getting a null pointer exception, but I'm not sure what needs to be changed.
I tried initallising the char array with char pw = new char;
but it made no difference. Could someone explain please?
Exception in thread "main" java.lang.NullPointerException