KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > devguide > ShoppingListItem


1 /*
2  * (c) Rob Gordon 2005
3  */

4 package org.oddjob.devguide;
5
6 public class ShoppingListItem {
7
8     private String JavaDoc product;
9     private double price;
10     
11     public void setProduct(String JavaDoc product) {
12         this.product = product;
13     }
14     
15     public String JavaDoc getProduct() {
16         return product;
17     }
18     
19     public void setPrice(double price) {
20         this.price = price;
21     }
22     
23     public double getPrice() {
24         return price;
25     }
26 }
27
Popular Tags