<<< javadoc example | Index | Nested classes >>> |
Two classes declared within a single file:
// file LineItem.java
import java.text.NumberFormat;
public class LineItem
{
private Product product;
private int quantity;
private double total;
//...
}//class LineItem
class Product
{
//...
}//class Product
The generated class files are:
LineItem.class Product.class
<<< javadoc example | Index | Nested classes >>> |