OneCompiler

Data Type and Variables

1710

byte  x = 99;           //-128 to 127
short x = 999;          // -32768 to 32767
int   x = 99999;        // -2147483648 to 2147483647
long  x = 99999999999L; // -9223372036854775808 to 9223372036854775807

float  x = 1.2;
double x = 99.99d;

char    x = "A";
boolean x = true;