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.

Convert List to Set in Java

In this post, we will see how to convert list to set in Java. As Set collection contains no duplicate elements, any repeated elements in the list will be discarded.