Advertisement
MixyPro

Pisac

Apr 20th, 2016
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.32 KB | None | 0 0
  1.  
  2. import java.util.Scanner;
  3.  
  4. /*
  5.  * To change this license header, choose License Headers in Project Properties.
  6.  * To change this template file, choose Tools | Templates
  7.  * and open the template in the editor.
  8.  */
  9.  
  10. /**
  11.  *
  12.  * @author miljan
  13.  */
  14. public class Pisac {
  15.     private String ime;
  16.     private String prezime;
  17.     private String pisacID;
  18.     private String zanr;
  19.     private String adresa;
  20.    
  21.  
  22.     public String getIme() {
  23.         return ime;
  24.     }
  25.  
  26.     public String getPrezime() {
  27.         return prezime;
  28.     }
  29.  
  30.     public String getPisacID() {
  31.         return pisacID;
  32.     }
  33.  
  34.     public String getZanr() {
  35.         return zanr;
  36.     }
  37.  
  38.     public String getAdresa() {
  39.         return adresa;
  40.     }
  41.  
  42.     public void setIme(String ime) {
  43.         this.ime = ime;
  44.     }
  45.  
  46.     public void setPrezime(String prezime) {
  47.         this.prezime = prezime;
  48.     }
  49.  
  50.     public void setPisacID(String pisacID) {
  51.         this.pisacID = pisacID;
  52.     }
  53.  
  54.     public void setZanr(String zanr) {
  55.         this.zanr = zanr;
  56.     }
  57.  
  58.     public void setAdresa(String adresa) {
  59.         this.adresa = adresa;
  60.     }
  61.     public void prikazi(){
  62.     System.out.println(getIme() + " " + getPrezime() + ", ID: " +  getPisacID() + ", zanr: " + getZanr() + ", sa adresom " + getAdresa() +"."  );
  63.    
  64. }
  65.    
  66.    
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement