I need help with #12 on java!


#1

i need help with the4th section of number twelve:rage:


#2

Ok Hey @unicornthefluffy! Let me go through this step by step with you.

So

Step One:

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

So for this code will just say :

// A COMMENT

Step Two:

Set the boolean variable isComplete to true.

so were just initalizing a variable called isComplete to true:

Step Three:

Set the int variable awesomeLevel equal to 121.

So where just initalizing another variable called awesomeLevel to 121:

    int awesomeLevel = 121;

Step Four:

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

So where just initalizing a variable called epicLevel and setting it two awesomeLevel varibale times two:

int epicLevel = awesomeLevel*2

Step Five:

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

Here your just uncommenting the last line:
System.out.println(epicLevel)

Complete Code

public class Generalizations {
public static void main(String[] args) {

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

	}
}

Hope this helped! Have a healthy learning!


Intrested in Web Develpoment? Want to know more? Where to go next?This is the place for you!

Instrested in Game Development?Want to know more? Where to go next? This is the place for you!


#3

Hey @amanuel2
can you help me?

What I have:

public class Generalizations {
public static void main(String[] args) {
//CommentHere:}
boolean isComplete = true;
int awesomeLeveln = 121;
int epicLevel = awesomeLevel * 2;
System.out.println(epicLevel);

}

}

I uncomment the last line but not going through

I copied and paste your complete code and it works how come mine doesn't?


#4

I can but i cant even see your code properly now. Can you put it in this format? Thankyou


#5

@amanuel2
I fixed it :}


Hey @amanuel2
can you help me?

What I have:

public class Generalizations {
	public static void main(String[] args) {
        //CommentHere:}
boolean isComplete = true;
		int awesomeLeveln = 121;
		int epicLevel = awesomeLevel * 2;		
		System.out.println(epicLevel);
		

	}
}

I uncomment the last line but not going through

I copied and paste your complete code and it works how come mine doesn't?


#6

Hey @enderd You accidently misspeled awesome level here :smiley:

Good Job on formatting!


#7

Thank you so much @amanuel2


#8

step four is not working always error
int epiclevel = awesomelevel * 2 ;
help anybody....


#9

You misspeled again @luwi123 there is suppose its suppose to be a capital L on the level like this

int epic = awesomeLevel*2

#10

A post was split to a new topic: 12. something is not right


#11