LEARNING JAVA v1steemCreated with Sketch.

in #java5 years ago (edited)

LEARNING JAVA
Published with SteemPeak

ScreenshotScreenshot by Willi Glenz

UPDATE

003 BASIC CLI-SNIPPET

public class Main {
   private String msg;

   public Main() {
      super();
      this.msg = "Hello World!";
   }

   public static void main(String[] args) {
      Main phoenix = new Main();
      phoenix.run();
   }

   public void run() {
      System.out.println(msg);
   }

}


002 PRIMITIVE DATA TYPES

TYPE        SIZE    RANGE                   DEFAULT CLASS&FIELD
byte        8 bit   -2^7 to 2^7 -1          0
short       16 bit  -2^15 to 2^15 -1        0
int         32-bit  -2^31 to 2^31 -1        0       Integer.MIN_VALUE to Integer.MAX_VALUE
long        64 bit  -2^63 to 2^63-1         0L
float       32 bit  -3.4E38 to 3.4E38       0f
double      64 bit  -1.7E308 to 1.7E308     0d
char        16 bit  '\u0000' to '\uffff'    '\u0000'
                    (0 to 65,565)
boolean     1 bit                           false
001 SOURCES

Bradley Kjell   chortle.ccsu.edu/java5/index.html
TutorialsPoint  www.tutorialspoint.com/java/index.htm
JavaTpoint      www.javatpoint.com/java-tutorial
IdeOne          ideone.com

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63098.06
ETH 2563.30
USDT 1.00
SBD 2.83