FileDocCategorySizeDatePackage
Parcel9.javaAPI DocExample3038Mon Apr 06 18:10:24 BST 1998c07.innerscopes

Parcel9

public class Parcel9 extends Object

Fields Summary
Constructors Summary
Methods Summary
public Destinationdest(java.lang.String dest, float price)

    return new Destination() {
      private int cost;
      // Instance initialization for each object:
      {
        cost = Math.round(price);
        if(cost > 100)
          System.out.println("Over budget!");
      }
      private String label = dest;
      public String readLabel() { return label; }
    };
  
public static voidmain(java.lang.String[] args)

    Parcel9 p = new Parcel9();
    Destination d = p.dest("Tanzania", 101.395F);