0

Java help

static public void main(String[] args) { // Pushing elements into the queue Queue<Integer> q = new LinkedList<>(); q.add(4); q.add(5); q.add(-2); q.add(-3); q.add(11); q.add(10); q.add(5); q.add(6); q.add(8); if (pairWiseConsecutive(q)) { System.out.println("Yes"); } else { System.out.println("No"); } } }

8th Apr 2022, 5:04 PM
Daniel Alexis
3 Answers
+ 1
Look up the lesson 62.1 in the Java course about Linked Lists. I think you have written it incorrectly.
8th Apr 2022, 5:51 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
doesn't respond? What way? Incomplete details.. Add more details.. Where are trying? Expected output? Full code..
8th Apr 2022, 6:09 PM
Jayakrishna 🇼🇳
0
I started to do something but it doesn't respond to the exercise
8th Apr 2022, 5:04 PM
Daniel Alexis