Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java output formatting

// Here is an example from https://docs.oracle.com/javase/tutorial/java/data/numberformat.html

System.out.format("The value of " + "the float variable is " +
     "%f, while the value of the " + "integer variable is %d, " +
     "and the string is %s", floatVar, intVar, stringVar); 
 
PREVIOUS NEXT
Tagged: #java #output #formatting
ADD COMMENT
Topic
Name
3+9 =