Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- /**
- *
- * @author miljan
- */
- public class Pisac {
- private String ime;
- private String prezime;
- private String pisacID;
- private String zanr;
- private String adresa;
- public String getIme() {
- return ime;
- }
- public String getPrezime() {
- return prezime;
- }
- public String getPisacID() {
- return pisacID;
- }
- public String getZanr() {
- return zanr;
- }
- public String getAdresa() {
- return adresa;
- }
- public void setIme(String ime) {
- this.ime = ime;
- }
- public void setPrezime(String prezime) {
- this.prezime = prezime;
- }
- public void setPisacID(String pisacID) {
- this.pisacID = pisacID;
- }
- public void setZanr(String zanr) {
- this.zanr = zanr;
- }
- public void setAdresa(String adresa) {
- this.adresa = adresa;
- }
- public void prikazi(){
- System.out.println(getIme() + " " + getPrezime() + ", ID: " + getPisacID() + ", zanr: " + getZanr() + ", sa adresom " + getAdresa() +"." );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement