Queue: add(String e)
import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Queue; public class Main { public static void main(String[] args) { Queue<String> queue = new LinkedList<String>(); queue.add("Hello"); queue.add("World"); List<String> list = new ArrayList<String>(queue); System.out.println(list); } }