Created
April 24, 2014 09:47
-
-
Save Rubatharisan/11248613 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Items { | |
private int id; | |
public int getId() { | |
return id; | |
} | |
public void setId(int id) { | |
this.id = id; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
private String name; | |
public Items(){ | |
} | |
@Override | |
public String toString(){ | |
return "ID: "+this.id+"\n" + | |
"Name: "+this.name+"\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment