| 1 | package jasper; |
| 2 | |
| 3 | |
| 4 | public class Organism { |
| 5 | |
| 6 | String orgName; |
| 7 | int taxId; |
| 8 | |
| 9 | // This is the constructor of the class Organism |
| 10 | public Organism(int id, String name) { |
| 11 | this.taxId = id; |
| 12 | this.orgName = name; |
| 13 | } |
| 14 | |
| 15 | //public void addName(String addName) { |
| 16 | // orgName = addName; |
| 17 | // } |
| 18 | |
| 19 | |
| 20 | public void printOrg() { |
| 21 | System.out.println("ID:"+ taxId ); |
| 22 | System.out.println("Name:" + orgName ); |
| 23 | } |
| 24 | |
| 25 | } |