You could easily use String.replace()
:
String helloWorld = "Hello World!";
String hellWrld = helloWorld.replace("o","");
More Related Contents:
- StringBuilder vs String concatenation in toString() in Java
- How do I convert from int to String?
- Sort on a string that may contain a number
- String’s Maximum length in Java – calling length() method
- How to split a comma-separated string?
- length and length() in Java
- How to format a Java string with leading zero?
- Is String Literal Pool a collection of references to the String Object, Or a collection of Objects
- Convert array of strings into a string in Java
- Should I use string.isEmpty() or “”.equals(string)?
- How to insert a character in a string at a certain position?
- Understanding logic in CaseInsensitiveComparator
- How to shuffle characters in a string without using Collections.shuffle(…)?
- Fatal Error: Invalid Layout of java.lang.String at value
- String replacement in java, similar to a velocity template
- How to center a string using String.format?
- Read String line by line
- Converting a sentence string to a string array of words in Java
- How to get the last characters in a String in Java, regardless of String size
- How do I convert a byte array with null terminating character to a String in Java?
- How to create variables dynamically in Java? [closed]
- substring index range
- What is the difference between String and StringBuffer in Java?
- How to replace a substring of a string [duplicate]
- How to replace � in a string
- How to remove large if-else-if chain [duplicate]
- How do I get the last character of a string?
- Find all numbers in the String [closed]
- Is it possible in Java to override ‘toString’ for an Objects array?
- split string only on first instance – java