0 تصويتات
منذ بواسطة
Queue<Integer> qu = new LinkedList<>();  qu.add(1);  qu.add(2);  qu.add(3);  qu.poll();  qu.poll();  System.out.println("The first element is: "+qu.peek()); What is output of code?
The first element is: 2
The first element is: 1
The first element is: 0
The first element is: 3

1 إجابة واحدة

0 تصويتات
منذ بواسطة
The first element is: 3
مرحبًا بك إلى يزيد، حيث يمكنك طرح الأسئلة وانتظار الإجابة عليها من المستخدمين الآخرين.
...