21.11.2014 Views

PJWSTK - MAS - Wykład 05

PJWSTK - MAS - Wykład 05

PJWSTK - MAS - Wykład 05

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Nowa pętla for<br />

o Rozwiązanie klasyczne<br />

public void oldFor(Collection c) {<br />

for(Iterator i = c.iterator();<br />

i.hasNtext();) {<br />

String str = (String) i.next();<br />

sb.append(str);<br />

}<br />

}<br />

o Nowe rozwiązanie<br />

public void newFor(Collection c) {<br />

for(String str : c) {<br />

sb.append(str);<br />

}<br />

}<br />

Modelowanie i Analiza Systemów Informacyjnych (<strong>MAS</strong>), wykład 3 15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!