java.io.InputStream represents a stream of bytes. Often when reading binary files or from a network, data is…
Java StringA collection of 38 posts
What is JSON? JSON stands for JavaScript Object Notation and has become the most popular format for…
Swapping strings Swapping two strings means interchanging their values with one another. Example, there are two string…
Problem Suppose there is a bunch of String objects and you want to join them by a…
Problem Suppose there are 2 strings and their values need to be interchanged. String variables are declared…
A string is said to be Palindrome which when reversed is the same as original string. In…
Words in a sentence are separated by a space. All the methods to get the words of…
There are multiple approaches to accomplish this. Following post lists those.
Iterating over a collection is a task that most developers are required to perform during their development…