《JAVA学习--第8章基本文本的应用程序.pptVIP

  • 5
  • 0
  • 约1.58万字
  • 约 37页
  • 2016-12-30 发布于四川
  • 举报

《JAVA学习--第8章基本文本的应用程序.ppt

Page * Collection 方法举例 import java.util.*; public class Test { public static void main(String[] args) { Collection c = new ArrayList(); //可以放入不同类型的对象 c.add(hello); c.add(new Name(f1,l1)); c.add(new Integer(100)); System.out.println(c.size()); System.out.println(c); } } 输出结果: 3 [hello, f1 l1, 100] TestArrayList.java Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Page * Collection 方法举例 import java.util.*; public class Test { public static void main(String[]

文档评论(0)

1亿VIP精品文档

相关文档