class DataTypes {
public static void main(String[] args) {
char letter = 'M';
String title = "Java In Easy Steps";
int num = 365;
float decimal = 98.6f;
boolean result = true;
System.out.println("Initial is" + letter);
System.out.println("Book is" + title);
System.out.println("Days are" + number);
System.out.println("Temperature is" + decimal);
System.out.println("Answer is" + result);
}
}
This is the error I get below...
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
number cannot be resolved to a variable
at DataTypes.main(DataTypes.java:12)