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"); } } }
3 Answers
+ 1
Look up the lesson 62.1 in the Java course about Linked Lists. I think you have written it incorrectly.
+ 1
doesn't respond? What way? Incomplete details.. Add more details..
Where are trying? Expected output? Full code..
0
I started to do something but it doesn't respond to the exercise