Skip to content
Snippets Groups Projects
Commit b5f9d65f authored by Vesa Lappalainen's avatar Vesa Lappalainen :bicyclist:
Browse files

Kerho kirjeet jopulupukille

parent 95556f48
No related branches found
No related tags found
No related merge requests found
package kerho;
/**
* CRC sisällöt tähän
* @author vesal
* @version 23.2.2021
*/
public class Kerho {
/**
* @param args ei käytössä
*/
public static void main(String[] args) {
Kerho kerho = new Kerho();
Jasen aku = new Jasen();
Jasen aku2 = new Jasen();
aku.rekisteroi();
aku.vastaaAkuAnkka();
aku2.rekisteroi();
aku2.vastaaAkuAnkka();
kerho.lisaa(aku);
kerho.lisaa(aku2);
for (int i=0; i<kerho.getJasenia(); i++) {
Jasen jasen = kerho.annaJasen(i);
jasen.tulosta(System.out);;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment