Java 12/12

// hector

	boolean isComplete = true;
	int awesomeLevel = 121;
	int epicLevel = awesomeLevel * 2;		
	System.out.println(epicLevel); 

I pretty sure this is right. im stuck on the last one on 12. help?

What makes you say that it isn’t right? What are you missing to fix it?
It’s very unclear what information you’re looking for :confused:
You might also need to show all the code, not just a part of it, unless you’re only asking about that specific part.

2 Likes

so how do you fix the problem above^^

You need to be sure to close off class and main function with curly braces

public class Generalizations {
    public static void main(String[] args){
       // Code goes here
    } <---
} <---

Be sure to not include the ‘<—’ marks I made

Holy crap we chose the same number for awesomeLevel, that is very weird, Im also having the same problem, I have the same code as you but it says its wrong

Here take out the quotes from the last line and you should be fine

who I am anymore? Its still saying that its incorrect.

You need to be sure to close off class and main function with curly braces

public class Generalizations {
public static void main(String args){
// Code goes here
} <— This needs to go on line 12
} <— This needs to go on line 13
Be sure to not include the ‘<—’ marks I made

Remember of size of letters

Level starts with big “L”

awesomeLevel != awesomelevel

you need to put in 121 x 2 or 242 in the printint brackets


Hi,
I guess I have the same problem here. The right result is printed but I still can’t continue. Could you please tell me whats wrong with my code?
Thanks!!

Thank you! This was a lifesaver!

What does it mean this script : “System.out.println(epicLevel)”?

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