Problem statement: We have a list of positive and negative numbers in a random order. We have to rearrange the…
Continue ReadingConvert JSON values into comma separated values – Java
JSON is a light-weight format to store and transport data. But sometimes it is required to convert it into some…
Continue ReadingCheck if a String is a Balanced String
A balanced String is a String with equal number of opening and closing matched brackets. In other words, an expression…
Continue ReadingDifference between equals operator == and equals() method
For comparison of two variable for their equality Java offers two methods. Equals operator ==, and equals() method in Object…
Continue ReadingDifference between concat() and concat operator ‘+’ in java
When there is a need to concatenate two or more strings in java we generally use the concatenation operator ‘+’.…
Continue Reading