Step 12 on Java introductions


#1

I have looked at multiple discussions and most have been easy fixes, either formatting or spelling problems checked mine for all haven't seen anything, can anyone point out what i'm missing?

step 12 on Java introductions

Errors:
Generalizations.java:5: error: ';' expected
boolean isComplete == true;
^
Generalizations.java:6: error: ';' expected
int awesomeLevel == 121;
^
Generalizations.java:7: error: ';' expected
int epicLevel == awesomeLevel * 2;
^
Generalizations.java:7: error: not a statement
int epicLevel == awesomeLevel * 2;
^
4 errors

--
This is my code

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


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


#2

Hey.

When we want to assign a value to a variable in Java we only need to use one equals sign ( = ).

This is also known as an assignment operator.


#3

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