Check out example codes for "java decler variabel". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

creating first grapper

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

Code Example 3

command for building docker

char var = 'h'; // Declaring and Initializing character variable

Code Example 4

int i(0);

Learn ReactJs, React Native from akashmittal.com