I know its a C forum, but I need help with my java...

Hi everyone!, I know this a forum dedicated to a C coding, but i really need some help with my java... I'm a really big newb at java. You will probably laugh at me, but I really want to understand why my small mini program isn't working.

It keeps telling me that a static can't go into a non-static method, and I don't really understand that

You need a random object in main in order to call the tenten and evenOrNot methods.

Originally Posted by Bjarne Stroustrup (2000-10-14)

I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.

Even so, Random is still a terrible name for a class. It doesn't describe it at all, plus it clashes with the standard Random from java.util. Sure it might be obvious to you that you're not using the standard Random class... but scroll 500 lines down and ask someone else to read the source and it's not going to be so obvious.