Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add char in specific index stirng javascript

int j = 123456;
String x = Integer.toString(j);
x = x.substring(0, 4) + "." + x.substring(4, x.length);

//output : 1234.56
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #char #specific #index #stirng #javascript
ADD COMMENT
Topic
Name
5+7 =