awesomelevel * 2 = epicLevel;
The above is what I typed in response to
Set the int variable epicLevel equal to awesomeLevel multiplied by 2.
previous line that got no error messages was
121 = awesomeLevel;
awesomelevel * 2 = epicLevel;
The above is what I typed in response to
Set the int variable epicLevel equal to awesomeLevel multiplied by 2.
previous line that got no error messages was
121 = awesomeLevel;
fair error message, given what you did is set epicLevel equal to aweomLevel multiplied by 2. Which won’t work, given we can’t assign values to integers
thanks!
like this?
public class Generalizations {
public static void main(String[] args) {
//kljdsgf
boolean isComplete = true;
int awesomeLevel = 121;
int epicLevel = awesomelevel * 2;
System.out.println(epicLevel);
}
}
That looks much better indeed
Thanks! maybe there’s a bug on the page then because it’s still giving me error messages.
What error message do you get? Can you also provide exercise url so i can debug in the lesson?
Generalizations.java:7: error: '.class' expected
int epicLevel = int awesomelevel * 2;
^
Generalizations.java:7: error: illegal start of expression
int epicLevel = int awesomelevel * 2;
^
Generalizations.java:7: error: ';' expected
int epicLevel = int awesomelevel * 2;
^
3 errors
that is why i missed it, small detail. Variable names are case sensitive, awesomeLevel is not the same as awesomelevel.
Dang. Good catch. Thanks for all your help!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.