Bear Bibeault wrote:"My carburetor was making a ticking sound so I removed it. The ticking sound is gone, but now the car won't start."
Solve the real problem rather than "solving" problems by patching symptoms. What is the exact error message you receive and on what line?
Steven Hofmann wrote:if i made it static, netbeans underlines line 15 and states: "non-static variable this cannot be referenced from a static content", which is why i removed static from it.
Bear Bibeault wrote:Even after you put the static keyword back in?
Steven Hofmann wrote:
I don't know what I did, but all of a sudden on line #5, netbeans is saying that "class main is public, should be declared in a file named main.java"... Well, I'm in the file main.java. I don't get it, it starts off the same as all my other programs. Additionally, when I try to run it, it says it has no main method. Maybe you guys can see something that I am not?
luck, db
There are no new questions, but there may be new answers.
Maybe more importantly, why is Stock an inner class of main? It doesn't need to be, and it rather looks like this was one more patch repair after the IDE complained about it being a public class in main.java.
Run away! Run away! Here, take this tiny ad with you:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|