2. Variables and types
Este artículo se traducirá automáticamente. Por ahora se muestra en inglés.
Java is statically typed: you declare the type before the name. int is a whole number, double a decimal, String text and boolean true or false.
Ver ejemplo
int age = 20;
System.out.println(age);