Java 8 Streams read file
In Java 8 we can use Files.lines to read file into stream and do manipulations.
Let’s say we want to count the number of unique words in the file.
In Java 8 we can use Files.lines to read file into stream and do manipulations.
Let’s say we want to count the number of unique words in the file.
Stream can be created from arrays using Arrays.stream static method. For example having an array of integers we can convert into IntStream:
Why Java is known as platform independent, whats the internal mechanism which enables this.
Introduction to Java 8 streams and functional programming.
Java Data Types and memory mapping details
Stream API provides facilities to check weather elements in a certain set of data satisfy some conditions. This is done by allMatch, anyMatch, noneMatch methods of stream.
Suppose we have a List of objects and want to convert into Map.
Understanding modifiers in Java and its sphere of influence
Understanding while loop in Java
Understanding for loop in Java