12/12 Learning Java help


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
INTRODUCTION TO JAVA
Generalizations
Congratulations! You’ve learned some of the building blocks of Java programming. What can we generalize so far?

<In what way does your code behave incorrectly? Include ALL error messages.>
Generalizations.java:10: error: variable isComplete is already defined in method main(String[])
boolean isComplete = true;
^
Generalizations.java:12: error: variable epicLevel is already defined in method main(String[])
int epicLevel = awesomeLevel * 2;
^
2 errors

```

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

	boolean isComplete;
	int awesomeLevel;
	int epicLevel;		
	System.out.println(epicLevel);
	//suck my cock 

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

<do not remove the three backticks above>

#2

I dont know why it keeps telling me to uncomment the last system.out.print line. I already uncommented it by removing the */ and */ but it still keeps saying I didnt uncomment it yet.


#3

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