Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java print formatted string

int x = 21;
String y = "Sample text";
System.out.printf("%s | x = %d
", y, x);
 
PREVIOUS NEXT
Tagged: #java #print #formatted #string
ADD COMMENT
Topic
Name
2+4 =