Monday, March 29, 2010

Declaring variables in java

to declare a variable in java we use the data type.
example:
int a;
int a=5;
float rph=1.2;
char s;
char let='A';
String s[]={"Hello", "World"};

No comments:

Post a Comment