Question: CHALLENGE ACTIVITY 2 . 2 . 2 : Linked list negative values counting. Assign negativeCntr with the number of negative values in the linked list.

CHALLENGE
ACTIVITY
2.2.2: Linked list negative values counting.
Assign negativeCntr with the number of negative values in the linked list.
Learn how our autograder works
546390.1983010.93zy
}
currobj = headObj; // Print the list
while (currobj != null){
System.out.print(currobj.getDataVal()+",");
}
currobj = currobj.getNext ();
System.out.println("");
currobj = headObj; // Count number of negative numbers
while (currobj != null){
Y** Your solution goes here */
}
currobj = currobj.getNext () ;
System.out.println("Number of negatives: "+ negativeCntr);
View your last submission vv
 CHALLENGE ACTIVITY 2.2.2: Linked list negative values counting. Assign negativeCntr with

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!