GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — think-in-java/11.5 练习.md at master · chenpengcode/think-in-java

Expand file tree

/

11.5 练习.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
14 lines (8 loc) · 695 Bytes
/

11.5 练习.md

Copy path

File metadata and controls

14 lines (8 loc) · 695 Bytes
Raw
Copy raw file
Download raw file
Edit and raw actions

11.5 练习

(1) 写一个方法,向它传递一个对象,循环打印出对象层次结构中的所有类。

(2) 在ToyTest.java中,将Toy的默认构建器标记成注释信息,解释随之发生的事情。

(3) 新建一种类型的集合,令其使用一个Vector。捕获置入其中的第一个对象的类型,然后从那时起只允许用户插入那种类型的对 象。

(4) 写一个程序,判断一个Char数组属于基本数据类型,还是一个真正的对象。

(5) 根据本章的说明,实现clearSpitValve()。

(6) 实现本章介绍的rotate(Shape)方法,令其检查是否已经旋转了一个圆(若已旋转,就不再执行旋转操作)。

You are visitor 01402877 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.