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


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!


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


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.


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