Java 12/12


#1

// 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?


#2

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.


#3


#4

so how do you fix the problem above^^


#5

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


#6

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


#7

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


#8


#9

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


#10

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


#11

Remember of size of letters

Level starts with big "L"

awesomeLevel != awesomelevel


#12

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


#13


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!!


#15

Thank you! This was a lifesaver!


#16

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


#17

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