NullPointerException and the best way to deal with it
- by lupin
Note: This is homework/assignment feel not to answer if you don't want to.
Ok after some search and reading these:
http://stackoverflow.com/questions/425439/how-to-check-if-array-element-is-null-to-avoid-nullpointerexception-in-java
http://stackoverflow.com/questions/963936/gracefully-avoiding-nullpointerexception-in-java…