...
Code Block |
---|
// variable Declaration int x1 = 15; // an integer i.e a whole number float valF = 0.323; // a floating point number i.e a numbers with a decimal point boolean bFlag = false; // a true or false value i.e a single bit value String message = "hallo 1"; // a collection of characters char character = 'g'; // a siglesingle character. Note the different quotation marks String msg1 = new String("hallo 2"); println(x1); println(valF); println(bFlag); println(message); println(character); println(msg1); |
...