Println Java
public class Main
{
public static void main(String[] args) {
System.out.println("Java Print");
}
}
Said HR
public class Main
{
public static void main(String[] args) {
System.out.println("Java Print");
}
}
String[] array = new String[] {"John", "Mary", "Bob"};
System.out.println(Arrays.toString(array)); // [John, Mary, Bob]
//Syntax
System.out.println("Hello World!");
// Requests the system to output, print a new line of sting Hello World!
// Output: Hello World!
//Without Variable
System.out.println("Hello World");
//With Variable
String hello = "Hello World";
System.out.println(hello);
System.out.println("simple message");
public class Something {
public static void main(String args[]) {
Scanner s = new Scanner(System.in);
char c1,c2;
c1 = s.findWithinHorizon(".", 0).charAt(0);
c2=s.findWithinHorizon(".", 0).charAt(0);
System.out.print(c1);
System.out.print(c2);
s.close();
}
}