Thursday, April 30, 2009

Capra cu trei iezi

//secventa de poveste in Java


private ArrayList caprasIed;
caprasIed=new ArrayList();
caprasIed.add("Iedul mic");
caprasIed.add("iedul mediu");
caprasIed.add("iedu care o supt mai mult");
private Carnivor lupul;
lupul= new carnivor("Lupul cel rau");
Ied iedTemporarSiProst;
iedTemporarSiProst=new Ied();
if(lupul.knockKnok()) {
iedTemporarSiProst= caprasIed.get(2);
if (iedTemporarSiProst.open(door)) {
lupul.NumberOfKillsCount();
iedTemporarSiProst.died();
}
}

No comments: