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. qx3zay?
while (currobj != null){
System.out.print(currObj.getDataVal()+",");
}
currObj = currObj.getNext () ;
System.out.println("");
currobj = headObj; // Count number of negative numbers
while (currobj != null){
}
currObj = currObj.getNext ();
System.out.println("Number of negatives: "+ negativeCntr);
}
}
???===== end ==+==
How was this section?
Provide section feed
 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!