InterviewSolution
Saved Bookmarks
| 1. |
How Will You Print Count Of Empty Strings In Java 8? |
|
Answer» The following CODE segment prints a count of empty STRINGS using filter. LIST<STRING>strings = Arrays.asList("abc", "", "bc", "efg", "abcd","", "jkl"); The following code segment prints a count of empty strings using filter. List<String>strings = Arrays.asList("abc", "", "bc", "efg", "abcd","", "jkl"); |
|