Developer's Daily Java Education - Test Projects
  front page | java | perl | unix | DevDirectory
   
Front Page
Java
Education
   
 


package com.missiondata.wb;

import java.util.*;


public class Pizza
{
  List listOfToppings = new LinkedList();

  public static final String CHEESE_TOPPING = "CHEESE";

  public void addTopping(String topping)
  {
    listOfToppings.add(topping);
  }

  public int getNumberOfToppings()
  {
    return listOfToppings.size();
  }

}
Copyright 1998-2003 DevDaily Interactive, Inc.
All Rights Reserved.