String input = “c_Name == V-GE-DO50 OR c_Name == V-GE-DO-C”;
I have tried
input.replaceAll(" ", "");
input.trim();
Both did not remove white space from the string
Want the string to look like
c_Name==V-GE-DO50ORc_Name==V-GE-DO-C
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Note that the
Stringmethods return a newStringwith the transformation applied.Stringsare immutable – i.e. they can’t be changed. So it’s a common mistake to do:and you should instead assign a variable: