Skip to content · ⁨דלג לתוכן⁩

ArrayList algorithms: filter and the remove bug · ⁨אלגוריתמים ב-ArrayList: סינון ובעיית ההסרה⁩

English

Doing work on a whole list

  • Now you can store data in an ArrayList. Next we process it.
  • Common jobs: count items that match a rule, filter them into a new list, and remove some of them.
  • All of these use a loop over the list.
עברית

ביצוע פעולות על רשימה שלמה

  • כעת ניתן לאחסן נתונים ב-ArrayList. בפעם הבאה נעשה עיבוד עליהם.
  • משימות נפוצות: ספירה של פריטים העונים לתנאי מסוים, סינון שלהם לרשימה חדשה, והסרת חלק מהם.
  • כולם משתמשים במעגל על הרשימה.

Handout · ⁨חומר עזר⁩

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP