Java 8: Streams – Part 1

What is Streams? Stream is a new abstract layer introduced in Java 8, It represents a sequence of objects from a source, which supports aggregate operations. To understand better, lets take basic sql function distinct. SELECT DISTINCT(USER_TYPE_ FROM...
String Java Program: Palindrome

String Java Program: Palindrome

Interview Questions Refer this for preparing yourself on how to write java program to check given string is a Palindrome or not. Palindrome public class PalindromeApp { public static void main(String[] args) { String input = "dad"; if...
JAVA PROGRAM TO PRINT PATTERNS

JAVA PROGRAM TO PRINT PATTERNS

Interview QuestionsRefer this for preparing yourself on how to write java program to print patterns (Note: NOT Design Patterns) Start PatternNumber Pattern Star Pattern (max. length is 5) public class StarPatternApp { public static void main(String[] args) {...