Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.

The SPECIALIST Lexicon

Example - Iteration

I. Task
Iterate through each item of a collection.

  • Go through all records
  • For each record, change to readable format (use name for value)
  • Print out readable format

II. Notes

  • Java 7 - external iterator - for loop
  • Java 8 - internal iterator -
    • ForEach (T -> void)
    • ForEach (Consumer<T>)

III. Java Codes

IV. Results