package com.liwin.exercises.internalclass;
public class Parcel1 {
class Contents {
private int i = 11;
public int getValue() {return i;}
}
class Destination {
private String label;
Destination(String where) {label = where;}
String readLabel() {return label;}
}
public void ship(String dest) {
Contents c = new Contents();
Destination d = new Destination(dest);
System.out.println(d.readLabel());
}
public static void test() {
Parcel1 p = new Parcel1();
p.ship("ShangHai");
}
}