Variables and strings
Java variables have explicit types:
int count = 3;
double price = 9.99;
boolean active = true;
String city = "Tokyo";
Join strings with +; numbers are converted automatically:
System.out.println(city + " has " + count + " parks");
String.format("%d items", count) works like C's printf.
Try it
Print:
Tokyo has 14 million people