In this post, we will discuss how to delete extra separator from the end of a String that gets added while looping through a Collection and adding each item to a String separated by a separator.
Guava com.google.common.primitives package provides utility classes for all primitives types such as Chars, Longs, Ints, Doubles, etc. In this article, we will talk about Guava Chars class which provides static utility methods to work with primitive char array.
A string is K-Palindrome if it becomes a palindrome on removing at most k characters from it. Write an algorithm to check if a given string is K-Palindrome or not.
In this article, we will talk about Guava Sets class which provides several static utility methods pertaining to Set instances.
Google Guava’s Multimap interface allows the mapping of a single key to multiple values in Java, unlike java.util.Map where a key can only be mapped to a single value. In this post, we will see how to use Guava’s Multimap in Java and also discuss its advantages over standard map implementation.
Guava provides a Multimap interface that allows mapping of a single key to multiple values in Java. In this post, we will see how to convert a Map<K,Collection<V>> to Guava’s Multimap in Java.
In this post, we will discuss how to convert a String to Boolean in Java. In other words, return the Boolean value represented by a specified string.
In this post, we will see how to convert float to int to nearest integer in Java.
In this post, we will see how to implement a Multimap in Java.
Given a mobile keypad having digits from [0-9] associated with each key, count total possible combinations of digits having length n. We can start with any digit and press only four adjacent keys of any digit. Keypad also contains * and # key which we are not allowed to press.
In this post, we will discuss how to convert a boolean to an int in Java. The convention should be such that true is 1 and false is 0.
In this post, we will implement KMP Algorithm in C, C++ and Java programming language.