0 Reputation Points
100% Quality Score
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
2 Posted Topics
Re: That's an assignment. You need 2 equals. Like this: if(sc.next() == "help"). Edit: Actually, you should probably use String.equals() for this. Not the == operator. | |
Re: I believe the problem is your First for loop. The variable i is being set to the value of a[0], then a[1], etc. If a[0] equals 200, you're asking it to check a[200]. |
The End.