Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

replacing string with dynamic avalues java

String s = java.text.MessageFormat.format("I would like to have {0} KG of rice and {1} Litre of Milk. I only have ${2}, is this sufficient?",new String[]{"100","5","50"});
System.out.println(s);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replacing #string #dynamic #avalues #java
ADD COMMENT
Topic
Name
7+7 =