Add items to list in core-java-collections (#4841)

This commit is contained in:
Felipe Santiago Corro
2018-07-29 01:38:51 -03:00
committed by maibin
parent 81d941758e
commit 748c94f231
2 changed files with 97 additions and 0 deletions
@@ -0,0 +1,28 @@
package com.baeldung.java.list;
public class Flower {
private String name;
private int petals;
public Flower(String name, int petals) {
this.name = name;
this.petals = petals;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getPetals() {
return petals;
}
public void setPetals(int petals) {
this.petals = petals;
}
}