How do you remove first and last double quotes in Java?

Hằng Đoàn

New member
How do you remove first and last double quotes in Java?
Answer
To remove the first character and last character from the string, use: myString = myString. substring(1,
myString. length()-1);
 

Tìm kiếm

Back
Top