Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

replace substring at index java

public static void main(String[] args) {

        StringBuffer buf = new StringBuffer("123456789");

        int start = 3;
        int end = 6;
        buf.replace(start, end, "foobar"); 
        System.out.println(buf);

    }

}
Comment

PREVIOUS NEXT
Code Example
Java :: string to string array java 
Java :: How to find the second smallest value in an array without sorting it in Java? 
Java :: java scanner string nextline after nextint 
Java :: who created java 
Java :: how to convert string array to int in java 
Java :: java list distinct by object attribute 
Java :: on touch listener android 
Java :: java quotes in string 
Java :: java 8 map foreach 
Java :: double to string java 
Java :: java download 64-bit 
Java :: max heap java 
Java :: while loop java 
Java :: java float 0/0 
Java :: array to list java 
Java :: How to find the next greater permutation of a list of numbers, in Java? 
Java :: find first element of list java 
Java :: how to convert a number into a decimal number in java 
Java :: date minus date java 
Java :: playerhead command minecraft 
Java :: jtable get get row 
Java :: how to remove null values collections 
Java :: findviewbyid in kotlin Just using id name . 
Java :: android-edittext allow only characters and numbers 
Java :: wrapper classes in java 
Java :: compile java 
Java :: how to format a double in java to 2 decimal places 
Java :: encapsulation in oop 
Java :: iterate hashmap java 
Java :: java regex case insensitive 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =