Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * @author Martin Silén
- * @version 4
- */
- public class Item {
- private String type, pris;
- private int price;
- public Item(String type, int price){
- this.type=type;
- this.price=price;
- }
- @Override
- public String toString(){
- pris=String.valueOf(price);
- return type+" "+pris+"€";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement