Reputation: 139
:) Sorry for the last question :)
How would I actually count all true and false value of every checkbox and print it This is the GUI I made..
For example, on John's answer's the Items 1,2 and 5 are correct and 3 and 4 are wrong.. I want to print the all correct in the Score textarea and the wrongs are in the Wrongs textarea.. I want to count all the Corrects and wrongs of every people.. and print it
And also Count all the corrects in every items and print it below ..
the True value of the checkbox are corrects and the false value or the unchecked value of the checkbox are wrongs
this is Where i get the logic
Upvotes: 1
Views: 557
Reputation: 533640
You need to place the check boxes for a individual in an array or collection.
Iterate over them and count the number of true values.
Upvotes: 1