We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
/** 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.");
}
}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Welcome to Java!
You are viewing a single comment's thread. Return to all 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 {
}