fork(16) download
  1. import java.util.*;
  2. import java.lang.*;
  3.  
  4. class Main
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. String input = "this string \"\"has\"\" double quotes";
  9. String output = input.replace("\"\"", "\"");
  10. System.out.println(input);
  11. System.out.println(output);
  12. }
  13. }
Success #stdin #stdout 0.02s 245632KB
stdin
Standard input is empty
stdout
this string ""has"" double quotes
this string "has" double quotes