Unsafe Operations in output


I have wriiten the code but it is showing the error :

Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

mention the type in arraylist everywhere
as
ArrayList<String> result = new ArrayList<>();