The compiler can not find a definition for the variable Weak.
Do you want to work with Strings and use the value of the int variable: strengthCount to assign a String like "Weak" to a String...
Type: Posts; User: Norm
The compiler can not find a definition for the variable Weak.
Do you want to work with Strings and use the value of the int variable: strengthCount to assign a String like "Weak" to a String...
The expression in the () is an assignment statement (=), not a comparison (==).
An assignment statement returns an int value, a comparison returns a boolean.
The if requires a boolean. Change...
The statement where that is happening has been left off the error message.
Threads merged.
Please edit your post and wrap your code with code tags:
YOUR CODE GOES HERE
to get highlighting and preserve formatting.
If you are getting errors, copy the full text...
Look at the Character class. It has lots of methods for checking characters.
The String class has a method for getting characters from a String.
See the API doc for those classes.