06-基础类及工具类.pptVIP

  • 2
  • 0
  • 约2.84千字
  • 约 46页
  • 2017-06-09 发布于湖北
  • 举报
4.2.2 对象初始化-静态调用;;3;基础类和工具类;主要内容;Java类库;Java类库;语言基础类库-Object类;public class BasicObjectDemo { public static void main(String[] args) { A a1 = new A(); A a2 = new A(); A a3 = a1; B b = new B(); System.out.println(a1.equals(a2)); System.out.println(a3.equals(a1)); System.out.println(a1.hashCode()); System.out.println(a1.toString()); }} class A {} class B {};实例;System类;语言基础类库:System类;语言基础类库:数据类型类;语言基础类库:Math类;数学运算的Math类;数学运算的Math类;public class StringDemo { public static void main(String[] args) { String s; s = String test ; s = new String(String test ); int stringLength

文档评论(0)

1亿VIP精品文档

相关文档