Generalizations question 4


#1



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

link: https://www.codecademy.com/courses/learn-java/lessons/introduction-to-java/exercises/generalizations


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 :)


#2

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


#3

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