To reference a variable in a Java program, you must first declare it. To declare a variable, follow these four steps.
int. A value is established in a separate Java statement. The second variable is of type
Stringand is declared with an initial value.