Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package viikko2;
- // SOVELLUSLUOKKA == APPLICATION CLASS
- public class OppilasHallinta {
- /**
- * @param args
- */
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- // LUO OPISKELIJA OLIO
- Oppilas opiskelija = new Oppilas();
- // KÄYTTÄÄ SET METODIA
- opiskelija.setEtunimi("Matti");
- // KÄYTTÄÄ GET METODIA
- System.out.println(opiskelija.getEtunimi());
- }
- }
Add Comment
Please, Sign In to add comment