Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

string format java

/* Common Format Specifiers
 *
 * %s - String value
 * %d - Integer value
 * %f - Decimal value (floating point)
 * %x - Hextstring value from integer
 * 
 */
String.format("String with format specifiers here: %d %s %f %x", 10, "input", 2.7, 26); 
 
PREVIOUS NEXT
Tagged: #string #format #java
ADD COMMENT
Topic
Name
3+7 =