Search:

Type: Posts; User: Bobba

Search: Search took 0.26 seconds.

  1. Re: java.lang.nullpointer exception in beginner code

    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()); ...
  2. java.lang.nullpointer exception in beginner code

    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.
    ...
  3. Re: Problem with my code, help would be appreciated.

    yeah thank you guys i got it to work :)
  4. Problem with my code, help would be appreciated.

    so here is the code fragment

    private int getChoice(int lower, int upper) {
    System.out.println("--------------------------------------------------------------");
    System.out.println("Please...
Results 1 to 4 of 4