I am inquiring about data types in Java.
public class Example {
public static void main(String[] args) {
string x = "String variable";
int y = 4;
System.out.println(x);
System.out.println(y);
}
}
Why do I receive an error when I declare a string
variable as all lowercase? I can declare integers
and other data types all lowercase, but when I declare a string
variable I must capitalize the "s" in "string"?