get paid to paste

java-tut-initializing-variables-double-float-literals-1

public class Beginner
{
   boolean booleanVar = true;
   byte byteVar = 0b10101;
   short shortVar = 035;
   int intVar = 0xFFA3
   long longVar = 1000;
   double doubleVar = 0.5d;
   float floatVar = 1.72E2f;
   char charVar = 0x97;

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

   //more codes here later...


  }
}

Pasted: Nov 28, 2024, 8:21:58 am
Views: 11