General Syntax, Elements, Printing

Println will print with a new line character 

print will print without a new line




 package com.company;


public class Main {


    public static void main(String[] args) {

// write your code here

        System.out.println("Hello World");

        System.out.println(2+16);


    }

}


// I love Java --> Normal

// ILoveJava --> Pascal

// iLoveJava --> cammelCase


Comments

Popular posts from this blog

Creating a Thread by Extending Thread class

Constructors from Thread class in Java