Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

formartted string java

String str = String.format( "Hello 
 World 
 my name is %s and i'm %d years old" , "Paul", 27);  
Comment

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));

Comment

PREVIOUS NEXT
Code Example
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
Javascript ::  
::  
:: setinterval jquery 
::  
::  
::  
::  
::  
::  
Javascript ::  
::  
::  
::  
:: exclude node_modules from tree command 
::  
::  
Javascript ::  
Javascript ::  
::  
ADD CONTENT
Topic
Content
Source link
Name
5+6 =