Line 123 is my buffered reader input creation line. That shouldn't have any value should it, since it's an object?
Type: Posts; User: destructobob
Line 123 is my buffered reader input creation line. That shouldn't have any value should it, since it's an object?
Sure. Here's the command window output.
Started
Port Opened Successfully.
Inside getUART method
Exception in thread "main" java.lang.NullPointerException
at...
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...
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...
Here's the code for see10birds.
public ArrayList<Bird> see10Birds() {
if (aviary.size() < 10) {
throw new RuntimeException("Not enough Birds");
}
ArrayList<Bird> newaviary = new...
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. ...
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...
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...
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...
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...