Mega Code Archive

 
Categories / Java / Data Type
 

Replace characters in string

public class Main {   public static void main(String[] args) {     String text = "The quick brown fox jumps over the lazy dog";     text = text.replace('o', 'u');     System.out.println("Result: " + text);   } }