I'm not going to do your homework for you. Recommended reading: http://www.javaprogrammingforums.com/cafe/10753-how-program-stuck-homework-read-before-posting.html
Type: Posts; User: KevinWorkman
I'm not going to do your homework for you. Recommended reading: http://www.javaprogrammingforums.com/cafe/10753-how-program-stuck-homework-read-before-posting.html
That's going back to your original error. It doesn't make sense to use the < operator on an entire array.
Start small. How do you print out the value of an index of an array? How do you use an if statement? When you get both of those things working separately, then think about combining them.
That is not correct syntax for an if statement. Again, the basic tutorials are your best friend. The first result for a google search of "java if statements" will give you the correct syntax.
What happened when you tried each?
I recommend carefully going through that tutorial I linked for you.
It really depends on what you want to happen. You're trying to compare an entire array to a single number, which you can't do. So are you trying to compare the size of the array? A specific element?...
How are you planning on fixing the first error? Again, keep in mind that Java is case sensitive, and the standard naming conventions mean that class names should start with a capital letter.
For...
Why not use an actual compiler?
Check your capitalization and spelling. Java is case sensitive.
Have you tried compiling this?