Answers for "string print in java"

0

java how to print a string

String[] array = new String[] {"John", "Mary", "Bob"};
System.out.println(Arrays.toString(array)); // [John, Mary, Bob]
Posted by: Guest on January-01-1970
1

how do i print text in java

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);
Posted by: Guest on April-17-2020
2

how to print something in java

System.out.print("one");
System.out.print("two");
System.out.println("three");

// RESULT = 'onetwothree'
Posted by: Guest on June-15-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language