Exercise 12


#1

I cant figure out how to uncomment the last line and can not move forward because of it


#2

Post your code. And the instructions.


#3

boolean isComplete = true;
int awesomeLevel = 121;
int epicLevel = awesomeLevel * 2;


#4

1.Write a single line comment anywhere you want. It can be anything! (Make sure it starts with //)

  1. Set the boolean variable isComplete to true.

3.Set the int variable awesomeLevel equal to 121.

4.Set the int variable epicLevel equal to awesomeLevel multiplied by 2.

5.Uncomment the last line so that the console prints out the value of epicLevel


#5

To uncomment, you would remove the // in front of the System.out.print statement, which I assume is there.


#6

@cadecodes @chipmaster33216
Help me please
this is my code:
public class Generalizations {
public static void main(String[] args) {
//I Am Determied

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

}

}

I un commented the last code
but not going through


#7

It happens to me too


#8

wont accept multiply by 2


#9

Hi this part

int awesomeLeveln = 121;
int epicLevel = awesomeLevel * 2;

You declare awesomeLeveln and store 121 then in the epicLevel you wrote awesomeLevel you forgot the n at the end.


#10

Well, I figured out the problem.
In order to uncomment, you actually need to edit the system.out.println part.

This is my final code:

    boolean isComplete=true;
    int awesomeLevel=121;
    int epicLevel=awesomeLevel*2;        
    System.out.println(121*2);   <--------------------- This is what you have to edit.

#11

A post was split to a new topic: 12. I am having a problem completing the last line


#12