Learn Java: Exercise 5 Variables (What Am I Doing Wrong?)


#1

I've tried changing syntax and I have no idea what it is I'm not seeing. when I hit "RUN" nothing populates in the code field. Help me out please!

https://www.codecademy.com/en/courses/learn-java/lessons/introduction-to-java/exercises/variables

int myNumber = 42;
boolean isFun = true; 
char movieRating = 'A';

#2

Nothing should appear in the console. This is simply declaring and initializing variables - not printing them.
Also, since it's Java, make sure you're using the necessary Java template for coding (class, main function). If you are, this code should be working.


#3

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