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 — GitHub - Dillon595/JavaCollectionExercise: Java集合练习

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
myHomework
myHomework
 
 
README.md
README.md
 
 

Repository files navigation

JavaCollectionExercise

Java集合练习

  1. 创建一个HashMap对象,并在其中添加一些学员的姓名和他们的分数:张三,90分,李四,88分。然后从HashMap对象获取这两个人的成绩并显示出来,接着把张三的成绩改为99分,再把他们的成绩显示出来。

2.定义一个ArrayList集合类,然后放入多个字符串,排序,反序(Collections 集合工具类中包含了排序等功能) 用Iterator遍历集合

3.定义一个Map集合,key是Integer类型,value是Cat类型, 然后使用values()方法遍历每个元素,调用每个元素的叫的方法 (定义Cat类,起码包含一个Cry()方法,建议结合泛型操作)

4.定义一个HashSet集合,只能添加Student类型的对象。 往集合内添加多个元素,分别使用foreach语句,Iterator方式循环

5.**随机生成不重复的26个小写字母,生成26个后就停止生成。

6.**随机生成100个小写字母,同时统计每个字母生成了多少个

About

Java集合练习

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

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