Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Planinec vnosPlaninca(){
- Scanner sc = new Scanner(System.in);
- System.out.println("vpisi ime ");
- String ime=sc.next();
- System.out.println("vpisi priimek ");
- String priimek = sc.next();
- System.out.println("Vpisi spol ");
- String temp = sc.next();
- char spol = temp.charAt(0);
- System.out.println("vpisi naslov ");
- String naslov = sc.next();
- Planinec p = new Planinec(ime, priimek, spol, naslov);
- return p;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement