Skip to content

Tag Archives: Java-Strings

 In Java, here we are given a string, the task is to replace a character at a specific index in this string. Examples:  Input: String… Read More
Given a String, the task is to convert it into comma separated List. Examples: Input: String = "Geeks For Geeks" Output: List = [Geeks, For,… Read More
Given a Set of String, the task is to convert the Set to a comma separated String in Java. Examples: Input: Set<String> = ["Geeks", "ForGeeks",… Read More
Given a String with extra delimiter at the end, the task is to remove this extra delimiter in Java. Examples: Input: String = "Geeks, For,… Read More
Given a string in date format, the task is to convert this String into an actual date. Here the main concept is the parse() method… Read More
Here, we will convert String to Double in Java. There are 3 methods for this conversion as mentioned below: Illustration:   Input : String =… Read More
Given a Set of Strings, the task is to convert the Set into an Array of Strings in Java. Examples: Input: Set<String>: ["ForGeeks", "A Computer… Read More
Given a String, the task is to convert it into a List of Characters in Java. Examples: Input: String = "Geeks" Output: [G, e, e,… Read More
Given a String str, the task is to get a specific character from that String at a specific index. Examples: Input: str = "Geeks", index… Read More
Every 6 months, Oracle releases new Java versions. The September Java 11 version is already making a lot of buzz in the computer science world… Read More
Given a String, the task is to convert this String into an IntStream containing the ASCII values of the characters as the elements. Examples: Input:… Read More
The ensureCapacity(int minimumCapacity) method of StringBuilder class helps us to ensures the capacity is at least equal to the specified minimumCapacity passed as the parameter… Read More
The getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) method of StringBuilder class copies the characters starting at the given index:srcBegin to index:srcEnd-1 from String… Read More
The length() method of StringBuilder class returns the number of character the StringBuilder object contains. The length of the sequence of characters currently represented by… Read More
Given a String and a Word, the task is remove that Word from the String. Examples: Input: String = “Geeks For Geeks”, Word = “For”Output: “Geeks… Read More

Start Your Coding Journey Now!