Hi Priyanka ,
I think this code snippet will help you out,
please check
import java. util.*;
public class Main
{
public static void main(String[] args) {
System.out.println("Hello World");
List<String> abc = Arrays.asList("Buenos Aires", "Córdoba", "La Plata");
System.out.println(abc);
}
}
Thanks