Java Cómo imprimir una cadena []
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]
System.out.println("your text" );
/* this will print your message and then move your cursor to the next line */
/* or */
System.out.print("your text");
/* this will print your message and keep it on the same line */
/* to print multiple items in one statement us a + between them */
System.out.println("age: " + age);
//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("I am a text");