-
Category : JSP/Java
Tags :
- Update : 2015-04-14
- Size : 10kb
- Downloaded :0次
- Author :陈***
- About :
Nobody
- PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
Programming: Animal queue
Requirements: In a team of animals in cats, dogs, and horses in three different animal (the order, the number and proportion is random),
Now requires the ability to make three points to their own kind of animal animals contingent.
(Note: Write a base class Animal inside a name, age attribute (randomly generated name and age) and abstract showInfo methods
Then write a subclass of Dog, Cat, Horse to inherit this base class Animal, Animal then randomly instantiates 20 Dog, Cat, Horse class
Stored in a list, create three lists, iterate the above list, add them to your list of classification and call showInfo (),
Show what each animal, name Age. ) (5 points)
2. Write a program, create a HashMap object, adding 10 students names and achievements: test1: 90 points test2: 83 minutes .. test10: 70 points.
Then retrieved the HashMap iteration their names and achievements, and then changed test5 score 10
Packet file list
(Preview for download)
11\.classpath
..\.project
..\bin\chen.class
..\...\example001\Animals.class
..\...\..........\Cat.class
..\...\..........\Dog.class
..\...\..........\Horse.class
..\...\..........\ShowInfor.class
..\...\example001
..\...\.........2\Student.class
..\...\example002
..\...\........3\FileDemo.class
..\...\example03
..\...\........4\Student
..\...\.........\Student.class
..\...\example04
..\bin
..\src\chen.java
..\...\example001\Animals.java
..\...\..........\Cat.java
..\...\..........\Dog.java
..\...\..........\Horse.java
..\...\..........\ShowInfor.java
..\...\example001
..\...\.........2\Student.java
..\...\example002
..\...\........3\FileDemo.java
..\...\example03
..\...\........4\Student
..\...\.........\Student.java
..\...\example04
..\src
11
Related instructions
- We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
- The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
- Please use Winrar for decompression tools
- If download fail, Try it againg or Feedback to us.
- If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
- Before downloading, you can inquire through the uploaded person information