FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 112   



Following program shows you how to print a multiline Hello World!.
In this program we use \n for multi lines

public class Basic2 {

    public static void main(String[] args) {

        System.out.println("Hello \nWorld!");

    }

}

Output:

Hello 
World!



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News