Java, как печатать строку []
String[] array = new String[] {"John", "Mary", "Bob"};
System.out.println(Arrays.toString(array)); // [John, Mary, Bob]
Pable Sorren
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("LUL");
System.out.println("Hello!"); //prints then ends line
System.out.print("Hello!!");//prints without line spacing
System.out.println(String someString); /** Can take in other types as well such as integers (ints) */