Blog: Java concept of the day (Pramod Bablad) |
279 blogs
updated: 30 min. ago
|
||
Java 8 map() and flatMap() are two important methods of java.util.stream.Stream interface used for transformation or mapping operations. Bot...
|
||
Problem : Write a Java 8 program or function which merge two maps with same keys. Your program should take two maps (which may have same key...
|
||
Problem : Write a Java program or function which takes two integer arrays (Sorted or Unsorted) as input and merge them into single sorted ar...
|
||
In previous post, we have seen how to sort HashMap by keys using Java 8 comparingByKey() method. In this post, we will see how to sort HashM...
|
||
HashMap, LinkedHashMap and TreeMap are three most popular Map types. LinkedHashMap maintains insertion order i.e elements are stored as they...
|
||
Problem : Write a Java program or function which takes an integer array as input and sort array elements in descending order of their freque...
|
||
Problem : Write a Java program or function which takes MxN matrix as input and find elements which are common in all rows of a matrix. For e...
|
||
Problem : Write a Java program or function which takes an integer array as input and prints contiguous subarray with maximum sum. For exampl...
|
||
Problem : Write a Java program or function which takes two strings as input and print common characters between them in alphabetical order. ...
|
||
Problem : Write a Java program or function to find most repetitive character or maximum occurring character in the given string. For example...
|
||