Answers for "java print variable in string"

2

java print text with variables

System.out.println("You have "+variable+" points");
Posted by: Guest on October-23-2020
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
2

java variable in string

String string = String.format("A string %s", aVariable);
Posted by: Guest on September-08-2020

Code answers related to "java print variable in string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language