fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main(String[] args) {
  11. String s = "An error occurred while sending a request to SFP. Server error: `POST https://a...content-available-to-author-only...x.com/business/sfp/inquiry/datax-migration/v1/migrate` resulted in a `500 An error occurred while attempting to process your request. Please resubmit the request. If the problem persists please contact Support at 1-800-729-6981` response:nn {n \"statusMessage\": \"An error occurred while attempting to process your request. Please resub (truncated...)n";
  12. System.out.println(s);
  13. System.out.println(s.replace("\"", "\\\""));
  14.  
  15. }
  16. }
Success #stdin #stdout 0.08s 54708KB
stdin
Standard input is empty
stdout
An error occurred while sending a request to SFP. Server error: `POST https://a...content-available-to-author-only...x.com/business/sfp/inquiry/datax-migration/v1/migrate` resulted in a `500 An error occurred while attempting to process your request. Please resubmit the request. If the problem persists please contact Support at 1-800-729-6981` response:nn           {n               "statusMessage": "An error occurred while attempting to process your request. Please resub (truncated...)n
An error occurred while sending a request to SFP. Server error: `POST https://a...content-available-to-author-only...x.com/business/sfp/inquiry/datax-migration/v1/migrate` resulted in a `500 An error occurred while attempting to process your request. Please resubmit the request. If the problem persists please contact Support at 1-800-729-6981` response:nn           {n               \"statusMessage\": \"An error occurred while attempting to process your request. Please resub (truncated...)n