Tag: string manipulation

bash: How to Concatenate Strings

String manipulation is a fundamental aspect of Bash scripting, and understanding how to concatenate strings is a key skill for any script developer. In this post, we will explore various…

Java: Converting String to List

There are many other reasons for wanting to convert a String to a List. For example, the length of the String needs to be defined. Such a restriction does not…

Splitting strings in Java

Java’s split function packs a powerful punch. You can use it to split string on characters, symbols, substrings, a collection of symbols, or even regular expressions. public class SplitString {…

Replacing and removing subtrings in Java

Java’s replaceString function is very handy for string and substring modifications. output First part of the all occurrences of a with e Second part remove all occurrences of the character…

Splitting strings in Java

Java’s split function packs a powerful punch. You can use it to split string on characters, symbols, substrings, a collection of symbols, or even regular expressions. output First part of…