Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
package org.coffeedriven;
import java.math.BigDecimal;
public class Item {
String name;
int weight;
BigDecimal price;
public Item(String name, int weight, BigDecimal price) {
this.name = name;
this.weight = weight;
this.price = price;
}
public String getName() {
return name;
}
public int getWeight() {
return weight;
}
public BigDecimal getPrice() {
return price;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment