In Java, you can escape quotes with \
:
String value = " \"ROM\" ";
More Related Contents:
- How to unescape a Java string literal in Java?
- What are all the escape characters?
- In Java, is there a way to write a string literal without having to escape quotes?
- Why String.replaceAll() in java requires 4 slashes “\\\\” in regex to actually replace “\”?
- How do I escape a string in Java?
- Remove all occurrences of \ from string
- Illegal Escape Character “\”
- foo(int) is not applicable for the arguments (String)
- How many characters can a Java String have?
- How can I iterate through the unicode codepoints of a Java String?
- string to string array conversion in java
- Is a Java string really immutable?
- How to remove leading zeros from alphanumeric text?
- How to escape % in String.Format?
- Count words in a string method?
- Check and extract a number from a String in Java
- When are Java Strings interned?
- Why are strings immutable in many programming languages? [duplicate]
- Automatic reserved word escaping for Hibernate tables and columns
- String parsing in Java with delimiter tab “\t” using split
- Scanner only reads first word instead of line
- Create a string with n characters
- Best way to concatenate List of String objects? [duplicate]
- Convert JsonObject to String
- Why is String.length() a method?
- Is it possible to change the text color in a string to multiple colors in Java?
- Java compressing Strings
- Unable to print russian characters
- Java: how to initialize String[]?
- How many Java objects are generated by this – new String(“abcd”)