20.11.2014 Views

OHJELMOINTITEKNIIKKA

OHJELMOINTITEKNIIKKA

OHJELMOINTITEKNIIKKA

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.

Epätasainen taulukko<br />

Tasainen taulukko<br />

int[ ][ ] taulu = new int[3][2];<br />

int[ ][ ] taulu = {{1,2}, {5,9}, {3,2}};<br />

0 1<br />

0 1 2<br />

1 5 9<br />

2 3 2<br />

Epätasainen taulukko<br />

taulu<br />

int[ ][ ] taulu = new int[3][ ];<br />

taulu[0] = new int[2];<br />

taulu[1] = new int[3];<br />

taulu[2] = new int[1];<br />

78

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

Saved successfully!

Ooh no, something went wrong!