FileDocCategorySizeDatePackage
Parcel5.javaAPI DocExample3008Mon Apr 06 18:10:24 BST 1998c07.innerscopes

Parcel5

public class Parcel5 extends Object

Fields Summary
Constructors Summary
Methods Summary
private voidinternalTracking(boolean b)

    if(b) {
      class TrackingSlip {
        private String id;
        TrackingSlip(String s) {
          id = s;
        }
        String getSlip() { return id; }
      }
      TrackingSlip ts = new TrackingSlip("slip");
      String s = ts.getSlip();
    }
    // Can't use it here! Out of scope:
    //! TrackingSlip ts = new TrackingSlip("x");
  
public static voidmain(java.lang.String[] args)

    Parcel5 p = new Parcel5();
    p.track();
  
public voidtrack()

 internalTracking(true);