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.
Java Data Types and memory mapping details
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
Java object initialization and instantiation order
Understanding significance of final in Java