Tag: Lambda

Convert a Set to Stream in Java 8

In this post, we will see how to convert a set to stream in Java 8. We will also learn how to apply filters on a stream and convert stream back to a set or list.

Convert List of String to List of Integer in Java

In this post, we will see how to convert List of String to List of Integer in Java. If the value of specified string is negative (string prefixed with ASCII character ‘-‘ ), the sign should be preserved in the resultant integer.