Tech Career Choices for young graduates What are the tech career choices for young graduates to choose in IT field? It is always difficult for young graduates/ professionals to choose the right career path in IT field. If you are new to programming it is really intimidating to decide from
Streams API in Java 8 – Intermediate Operations This is Part-II of the Streams API in Java 8 series. In this blog, lets learn to perform intermediate operations in Streams.You can understand about streams and learn to create streams in Part-I of the Streams API in Java 8 series. Now,
Streams API in Java 8 – Creating Streams This is Part-I of the Streams API in Java 8 series. In this blog, lets understand about the Streams API in Java 8. Let us also learn to create Streams from Collection, arrays and about infinite streams. Streams in Java 8 helps
How to get the count of the total words and the occurrences of each word in a paragraph? In this post lets learn to get the count of the total words in a paragraph/sentence and to get the count of occurrence of each word. This can be done in many
Compare two strings in lexicographical order and print which is greater without using java method In this post lets discuss, how to compare two strings lexicographically, and print the greater string. Lexicographical order: This is a dictionary order, in which the characters are compared as follows A < B <
Capitalize the first letter of a string and print the whole string In this post lets learn how to capitalize the first letter of a word/ group of words and print the whole string Problem Statement Given a String str, capitalize the first letter of a string and print the
Find the count of occurrence of each character in a string In this post lets learn to get the count of all the characters and the count of the occurrence of each character in a String. Problem Statement Given a String str, find the count of all the characters and
Find all the substrings of a given string In this post lets learn to write a program to get all the non-empty substrings of a given String. For any String of length n, the number of non-empty substrings can be calculated using n(n+1)/2 For example if the input is “hello”,
Default Methods of an interface in java 8 In this blog let us learn about default methods introduced in interfaces in java 8 and its usage. Let’s discuss Why default methods are introduced in java 8? What are default methods and how to use them? Can we override the default
How to implement Predicate using lambda on a Collection ? In this blog, lets learn how to use Predicate on a collection of values using Java 8. Lets walk through What is Predicate? Implementing Predicate using Lambda expression Using Predicate with Collections Using Predicate with primitives (IntPredicate) and two arguments