Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

formartted string java


int someNumber = 42;
String someString = "foobar";
Object[] args = {new Long(someNumber), someString};
MessageFormat fmt = new MessageFormat("String is "{1}", number is {0}.");
System.out.println(fmt.format(args));

Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #formartted #string #java
ADD COMMENT
Topic
Name
7+8 =