The asssignment says:
The int token arg is to be passed to the addToken() method.
I don't understand the problem with the id variable(s).
The statement that starts with:
String id
defines a...
Type: Posts; User: Norm
The asssignment says:
The int token arg is to be passed to the addToken() method.
I don't understand the problem with the id variable(s).
The statement that starts with:
String id
defines a...
Is that what the assignment says to do?
That says to pass an int value as an arg
About the variable: id
You can use it more than one time
or you can define a new variable (like id2) and use...
If there are two variables with the same name, change the name of one of them:
String id = something; // define variable: id and assign it a value
...
String id2 = somethingelse; //define new...
There can only be one variable with each name. The compiler sees two variables with the name: id.
Either change the name of one of them, for example: id2
or reuse the first variable and do not...