12.4 Set the int variable epicLevel equal to awesomeLevel multiplied by 2


<Below this line, add a link to the EXACT exercise that you are stuck at.>

Not sure what I’m doing wrong here - would love some guidance.

<In what way does your code behave incorrectly? Include ALL error messages.>
Generalizations.java:7: error: unclosed character literal
int epicLevel=‘awesomeLevel’*2;
Generalizations.java:7: error: unclosed character literal
int epicLevel=‘awesomeLevel’*2;
Generalizations.java:7: error: not a statement
int epicLevel=‘awesomeLevel’*2;
3 errors


Replace this line with your code.

<do not remove the three backticks above>

What is a character literal? What does it look like? How does that relate to what’s in your code?

Try consulting a search engine with either the error message or looking up what a character literal is. Add the word java in the search query for context

Here’s my exact code:
public class Generalizations {
public static void main(String args) {

Maybe you’ll be able to see my error if I provide the exact code I tried?

	boolean isComplete=true;
	int awesomeLevel=121;
	int epicLevel=='awesomeLevel'*2;		
	//Starting the last Java step!//



I don’t need to see it or even tell you what the problem is because the compiler is already doing both of those things. So what you need to do is to read the error message that is coming from the compiler.
If you don’t understand it then that’s fine, but then you will need to dig a bit deeper, such as by searching for that error message with a search engine.

You don’t need me.

Just now I completed this question .I’m also a learner here .
your code is
int epicLevel==‘awesomeLevel’*2;
replace this with
int epicLevel = awesomeLevel * 2;
hope this will help you .


That works! Thanks so much! :slight_smile:

1 Like

can you help with the final one dude

not the one up above this one

Hi This is the answer for all the Question .
// boolean isComplete = true;
int awesomeLevel = 121;
int epicLevel = awesomeLevel * 2;
Hope it will help you .Sorry for the late reply.

I think there is a bag that doesn’t let me pass when i delete the code to let the last one pass. HELP

upper case “L” in “awesomeLevel”

Hi what you are trying to say .

help me with step 5/12

i had the exact thing typed out but when I copied and pasted it worked? anyways thanks

1 Like

Thanks man you really helped me out turns out my problem was just the semicolons. Oh well, guess now ill be more observant.

1 Like

I’m getting an error of expected ‘;’ at the end of the line. but I have used a semi colon. please help me. my code is int epiclevel==int awesomelevel*2;

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