hello sorry i havent been able to get back to this, been working.
public void displayBooks(){
for (int i=0;i<books.length;i++){
System.out.println("Code: " + books[i].getCode()); ...
Type: Posts; User: Bobba
hello sorry i havent been able to get back to this, been working.
public void displayBooks(){
for (int i=0;i<books.length;i++){
System.out.println("Code: " + books[i].getCode()); ...
Hi there writing a small program for borrowing and lending books, the code compiles but alot of the time when i run this code i get "java.lang.NullPointerException" and the program stops working.
...
yeah thank you guys i got it to work :)
so here is the code fragment
private int getChoice(int lower, int upper) {
System.out.println("--------------------------------------------------------------");
System.out.println("Please...