![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
class ForestFire { void initialize() { Sektor[][] forest = new Sektor[10][10]; for ( int x=0; x <= 9; x++ ) { for ( int y=0; y <= 9; y++ ) { forest[x][y] = new Sektor(); forest[x][y].initialize(); } } [....] |
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 |
class ForestFire { private Sector[][] forest; private void initialize() { forest = new Sector[10][10]; [...] } } |
This post has been edited 2 times, last edit by "Schokoholic" (Apr 24th 2010, 1:44pm)
This post has been edited 2 times, last edit by "jasper" (Apr 25th 2010, 2:26pm)
Auf der Konsole mit javac und java? Pfeiltasten hoch und voriges Kommando neu ausführen *g*
Edit: Nun funktioniert's, muss mich wohl erst noch dran gewöhnen wie ich schnell Zwischenergebnisse testen kann.
This post has been edited 1 times, last edit by "Markus" (Apr 25th 2010, 2:37pm)
This post has been edited 1 times, last edit by "Benjamin" (Apr 28th 2010, 8:49am)
Ich weiß nicht, worauf die aktuelle Vorlesung aufbaut, doch empfiehlt sich immernoch das inzwischen zweiteilige Java-Buch aus der RRZN-Handbücher-Reihe als parallele Lektüre, günstig und leichte Kost zum Lernen.