ControlC ControlC · Pastebin

java-tut-initializing-variables-char-literals-2

Pasted: Nov 28, 2024, 8:17:48 am · Views: 74
public class Beginner
{
boolean booleanVar = true;
byte byteVar = 0b10101;
short shortVar = 035;
int intVar = 0xFFA3;
long longVar = 1000;
double doubleVar;
float floatVar;
char charVar = 0x97;

public static void main(String[] args)
{
Beginner beginner;
beginner = new Beginner();

//more codes here later...


}
}