Search:

Type: Posts; User: destructobob

Search: Search took 0.39 seconds.

  1. Replies
    5
    Views
    1,988

    Re: Java Null Pointer Exception

    Line 123 is my buffered reader input creation line. That shouldn't have any value should it, since it's an object?
  2. Replies
    5
    Views
    1,988

    Re: Java Null Pointer Exception

    Sure. Here's the command window output.



    Started
    Port Opened Successfully.
    Inside getUART method

    Exception in thread "main" java.lang.NullPointerException
    at...
  3. Replies
    5
    Views
    1,988

    Java Null Pointer Exception

    I'm getting a null pointer exception concerning lines 123 and 206, about the getUARTLine method. I had this code working earlier in that it was taking in the strings, splitting them up, removing the...
  4. Replies
    1
    Views
    502

    Odd Instance Field Issue

    My issue is that eclipse is telling me that the decimal instance field is never read locally, despite the fact that it's an instance field meaning it should be a class variable. Therefore, when I...
  5. Replies
    5
    Views
    441

    Re: Scanner problem - need help

    Here's the code for see10birds.


    public ArrayList<Bird> see10Birds() {
    if (aviary.size() < 10) {
    throw new RuntimeException("Not enough Birds");
    }

    ArrayList<Bird> newaviary = new...
  6. Replies
    5
    Views
    441

    Re: Scanner problem - need help

    Sorry, I'm fairly new to programming and I don't really get what you mean by "code tags" and highlight tags. If you could explain those to me, that would be great.

    And here is my main method. ...
  7. Replies
    5
    Views
    441

    Scanner problem - need help

    My code is becoming a scanner for some reason. When I run the code, it waits for input in the console, and when I enter anything, nothing happens, and it simply waits for more scanner input. I...
  8. Re: Array List Help - Can't find where problem is!!

    Yes, I flipped that. But now I'm struggling to do these for loops. I need them to run through the array x number of times, x being the int parameter going into the method runExperimentManyTimes. I...
  9. Re: Array List Help - Can't find where problem is!!

    Hi, I switched around the variables in my constructor, setting av = x;, instead of x = av;.

    I'm not sure if that makes a difference but now I am getting an array out of bounds error, which I...
  10. Array List Help - Can't find where problem is!!

    Hi, I'm having the following error with the below code, and I have no idea how to fix it. Any suggestions would be greatly appreciated.

    Exception in thread "main" java.lang.NullPointerException...
Results 1 to 10 of 10