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/3.4 练习.md at master · chenpengcode/think-in-java

Expand file tree

/

3.4 练习.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
7 lines (4 loc) · 423 Bytes
/

3.4 练习.md

Copy path

File metadata and controls

7 lines (4 loc) · 423 Bytes
Raw
Copy raw file
Download raw file
Edit and raw actions

3.4 练习

(1) 写一个程序,打印出1到100间的整数。

(2) 修改练习(1),在值为47时用一个break退出程序。亦可换成return试试。

(3) 创建一个switch语句,为每一种case都显示一条消息。并将switch置入一个for循环里,令其尝试每一种case。在每个case后面都放置一个break,并对其进行测试。然后,删除break,看看会有什么情况出现。

You are visitor 01402860 — 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.