Declare integer variable in android Java

Assign value to integer data type variable using equal ( = )operator.

Integer variable is used to store and assign number values in android program like 1, 2, 100, 27 etc. Integer data type declares using int keyword . All the values stores in int variable using = ( equals) sign. So here is the complete step by step tutorial for How to Declare integer variable in android Java.

How to Declare integer variable in android Java.

 

// Declaring Integer variable.
int abc;

//Assign value to integer variable.

abc = 10;

Screenshot:

Declare integer variable in android Java

Leave a Reply

Your email address will not be published. Required fields are marked *