mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
using remove() properly now in IntList example
This commit is contained in:
@@ -67,10 +67,8 @@ void draw() {
|
||||
// One every 30 frames we pick a new lottery number to go in results
|
||||
if (frameCount % 30 == 0) {
|
||||
if (results.size() < 5) {
|
||||
// Get the first value in the lottery list
|
||||
int val = lottery.get(0);
|
||||
// Remove it from the lottery list
|
||||
lottery.remove(0);
|
||||
// Get the first value in the lottery list and remove it
|
||||
int val = lottery.remove(0);
|
||||
// Put it in the results
|
||||
results.append(val);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user