fork download
  1. class Main {
  2. public static void main (String[] args) {
  3. String str = " Hello Word";
  4. str = str.replace("Hello", "Olá");
  5. System.out.println(str);
  6. }
  7. }
  8.  
  9. //https://pt.stackoverflow.com/q/75000/101
Success #stdin #stdout 0.06s 32492KB
stdin
Standard input is empty
stdout
 Olá Word