Would a container like an ArrayList solve your problem?
Type: Posts; User: Norm
Would a container like an ArrayList solve your problem?
Define a variable for each type
or put the different types into an array or arraylist.
Done for tonight. Back tomorrow.
Add // after the ; and the compiler should be happy.
You never explained what you are trying to do
nor have you posted the code with the error.
I can't see over your shoulder to know what is...
That seems like a very clear error message. What is the problem you are having with it?
The compiler wants a ; so add a ; where the compiler is telling you to put it.
Please copy full text of error message and paste it here. Here is a sample:
TestSorts.java:138: cannot find symbol
symbol : variable var
location: class TestSorts
var = 2;
...
A variable can be assigned one value with an assignment statement.
I have no idea what that statement is trying to do. You can't make up new syntax that the compiler does not understand. You...
Please post the full text of the compiler error messages and the code that is causing the errors, not just part of the message, the full text.
The || operator has boolean operands, not Strings....
Please post the full text of the compiler error messages and the code that is causing the errors.