CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 WEB源码 JSP源码/Java

文件名称:11

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2015-04-14
  • 文件大小:
    9.88kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

编写程序:动物排队

要求:在一队动物里有猫、狗、和马三种不同动物(其顺序、数量和比例是随机的),

现在要求能够让这三种动物站到自己那一类动物的队伍中去。

(备注:写一个基类Animal 里面有一个name,age属性(名字和年龄随机产生)和抽象showInfo方法,

然后用再写子类Dog、Cat、Horse去继承这个基类Animal,再用Animal随机的来实例化20个Dog、Cat、Horse类

存放在一个列表中,创建三个列表,迭代上面的列表,将他们分类添加到自己的列表中并调用showInfo() ,

显示各自是什么动物,名字 年龄。)(5分)





2.编写程序,创建一个HashMap对象,添加10个学生的姓名和成绩:test1:90分;test2:83分.. test10:70分。

接着从HashMap中迭代获取他们的姓名和成绩,然后把test5的成绩改成100分,再次迭代输出他们的信息。(4分)





3.编写程序,把D:\test\test.txt文件的内容拷贝到D: \201312\demo.txt中,删除源文件夹以及源文件。(5分)





数据库:

1、学生表中有15条数据,每页显示四条,查询出最后一页显示的数据。(3)

2、创建序列,通过序列往student score course插入数据, 然后创建一个视图,通过视图查询出学生的信息以及课程信息(4)。

-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
(系统自动生成,下载前可以参看下载内容)

下载文件列表

11/.classpath
11/.project
11/bin/chen.class
11/bin/example001/Animals.class
11/bin/example001/Cat.class
11/bin/example001/Dog.class
11/bin/example001/Horse.class
11/bin/example001/ShowInfor.class
11/bin/example001
11/bin/example002/Student.class
11/bin/example002
11/bin/example03/FileDemo.class
11/bin/example03
11/bin/example04/Student
11/bin/example04/Student.class
11/bin/example04
11/bin
11/src/chen.java
11/src/example001/Animals.java
11/src/example001/Cat.java
11/src/example001/Dog.java
11/src/example001/Horse.java
11/src/example001/ShowInfor.java
11/src/example001
11/src/example002/Student.java
11/src/example002
11/src/example03/FileDemo.java
11/src/example03
11/src/example04/Student
11/src/example04/Student.java
11/src/example04
11/src
11

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com