Welcome to Java!

  • + 0 comments

    /** Print both the Hello, World and Hello, Java using a single statement by using \n (new line operator, which prints the next sentence in a new line) */

    import java.io.; import java.util.;

    public class Solution {

    public static void main(String[] args) {
        System.out.println("Hello, World.\nHello, Java.");
    }
    

    }