Skip to content

Tag Archives: Java-Strings

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
Given a String, the task is to convert it into Double in Java. Examples: Input: String = "20.156" Output: 20.156 Input: String = "456.21" Output:… 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 out new Java versions. The September Java 11 version is already making a lot of buzz in the computer science… 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"… Read More
Given a String and an array of prefixes. The task is to check whether the given String starts with any of the given prefixes or… Read More

Start Your Coding Journey Now!