the souce code of thinking in java (1-10),if you want to learn java ,please read it and you will get

源代码在线查看: parcel8.java

软件大小: 118 K
上传用户: rylzll
关键词: java you thinking please
下载地址: 免注册下载 普通下载 VIP

相关代码

				//: c08:Parcel8.java
				// An anonymous inner class that performs
				// initialization. A briefer version of Parcel4.java.
				// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
				// www.BruceEckel.com. See copyright notice in CopyRight.txt.
				
				public class Parcel8 {
				  // Argument must be final to use inside
				  // anonymous inner class:
				  public Destination dest(final String dest) {
				    return new Destination() {
				      private String label = dest;
				      public String readLabel() { return label; }
				    };
				  }
				  public static void main(String[] args) {
				    Parcel8 p = new Parcel8();
				    Destination d = p.dest("Tanzania");
				  }
				} ///:~
							

相关资源