Generalizations question 4

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

hey im stuck with this one.its most likely that i made a silly mistake since im tired. but if u could help me,it would be very much appreciated
<Below this line, add a link to the EXACT exercise that you are stuck at.>
link: https://www.codecademy.com/courses/learn-java/lessons/introduction-to-java/exercises/generalizations

<In what way does your code behave incorrectly? Include ALL error messages.>
error messages
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

```

what i wrote:
int epicLevel = int awesomeLevel * 2;

thanks :slight_smile:

<do not remove the three backticks above>

So your error is you included another int after the equal sign. This is not needed. awesomelevel stores the 121 in it so as long as you have int awesomelevel = 121 before all you have to put is = awesomeLevel * 2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.