declare int java

Java
int number = 10;java decleration

float simpleInterest; //Declaring float variableint i(0);float simpleInterest; //Declaring float variable
int time = 10, speed = 20; //Declaring and Initializing integer variable
char var = 'h'; // Declaring and Initializing character variable

Source

Also in Java: