Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Kortti etsiSuurin()
- {
- // Käytä kortti.getArvo() ja kortti.getMaa() metodeja!
- Kortti suurin = null;
- for kortti : kortit
- if(kortti on suurempi kuin suurin)
- kortti = suurin;
- return suurin;
- }
Add Comment
Please, Sign In to add comment