2020年10月6日

摘要: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an 阅读全文
posted @ 2020-10-06 19:40 。。。00 阅读(92) 评论(0) 推荐(0) 编辑

2020年9月22日

摘要: 1. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_paren 阅读全文
posted @ 2020-09-22 16:44 。。。00 阅读(279) 评论(0) 推荐(0) 编辑

2020年8月31日

摘要: 阅读全文
posted @ 2020-08-31 12:26 。。。00 阅读(79) 评论(0) 推荐(0) 编辑

2020年6月17日

摘要: 1.需求说明:使用HashMap存储多个企鹅信息,然后统一使用Iterator进行遍历。 import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; public c 阅读全文
posted @ 2020-06-17 11:39 。。。00 阅读(86) 评论(0) 推荐(0) 编辑

2020年6月2日

摘要: 把多个企鹅的信息添加到集合中查看企鹅的数量及所有企鹅的信息删除集合中部分企鹅的元素判断集合中是否包含指定企鹅 import java.util.ArrayList; class test { public static void main(String[] args) { // TODO Auto- 阅读全文
posted @ 2020-06-02 15:14 。。。00 阅读(156) 评论(0) 推荐(0) 编辑

2020年5月28日

摘要: 1.编写一个随机生成 10个 0(包括) 到 100 之间的随机正整数。 public class test { public static void main(String[] args) { // TODO Auto-generated method stub int[] arr = new i 阅读全文
posted @ 2020-05-28 11:09 。。。00 阅读(103) 评论(0) 推荐(0) 编辑

2020年5月26日

摘要: 1.编写一个程序,实现字符串大小写的转换并倒序输出。要求如下(1)使用for循环将字符串“ Hello world”从最后一个字符开始遍历(2)遍历的当前字符如果是大写字符,就使用 toLower Case()方法将其转换为小写字符,反之则使用 toUpper Case()方法将其转换为大写字符。( 阅读全文
posted @ 2020-05-26 12:48 。。。00 阅读(129) 评论(0) 推荐(0) 编辑

2020年5月21日

摘要: 1、设计四个类,分别是:(知识点:抽象类及抽象方法) (1)Shape表示图形类,有面积属性area、周长属性per,颜色属性color,有两个构造方法(一个是默认的、一个是为颜色赋值的),还有3个抽象方法,分别是:getArea计算面积、getPer计算周长、showAll输出所有信息,还有一个求 阅读全文
posted @ 2020-05-21 12:50 。。。00 阅读(89) 评论(0) 推荐(0) 编辑

2020年5月16日

摘要: 4、Cola公司的雇员分为以下若干类:(知识点:多态) (1) ColaEmployee :这是所有员工总的父类,属性:员工的姓名,员工的生日月份。 方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日,则公司会额外奖励100 元。 (2) SalariedEm 阅读全文
posted @ 2020-05-16 17:44 。。。00 阅读(196) 评论(0) 推荐(0) 编辑

2020年5月14日

摘要: 1、(1)定义一个汽车类Vehicle,要求如下:(知识点:类的继承 方法的覆盖)(a)属性包括:汽车品牌brand(String类型)、颜色color(String类型)和速度speed(double类型)。(b)至少提供一个有参的构造方法(要求品牌和颜色可以初始化为任意值,但速度的初始值必须为0 阅读全文
posted @ 2020-05-14 11:24 。。。00 阅读(244) 评论(0) 推荐(0) 编辑