Valizada's blog

Category: Java

Java - how to transform Array to linked list

July 18, 2020Java 1 Min Read

A simple demo of creating linked list from array

Java how to transform HashSet to ArrayList

July 18, 2020Java 1 Min Read

The below code snippet demonstrates how to transform a set collection to list. Simply pass a set in constructor of List:

Java - sort two dimensional array with Stream API

July 18, 2020Java 1 Min Read

Use stream api to quickly sort a 2D array in Java.