in java can i declare variable and assign value code example
Example 1: java decler variabel
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
Example 2: declare int java
int number = 10;