摘要: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.login1"> <application 阅读全文
posted @ 2020-11-30 13:44 bluebless 阅读(56) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/ 阅读全文
posted @ 2020-11-29 18:46 bluebless 阅读(49) 评论(0) 推荐(0) 编辑
摘要: <?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-11-29 18:04 bluebless 阅读(36) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android. 阅读全文
posted @ 2020-09-22 17:44 bluebless 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-08-31 12:47 bluebless 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 把多个企鹅的信息添加到集合中查看企鹅的数量及所有企鹅的信息删除集合中部分企鹅的元素判断集合中是否包含指定企鹅 public class jh { public static void main(String[] args) { // TODO Auto-generated method stub A 阅读全文
posted @ 2020-06-02 20:41 bluebless 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个随机生成 10个 0(包括) 到 100 之间的随机正整数。 package shisanzhou; import java.util.Random; public class suiji { public static void main(String[] args) { // TOD 阅读全文
posted @ 2020-05-28 11:29 bluebless 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个程序,实现字符串大小写的转换并倒序输出。要求如下(1)使用for循环将字符串“ Hello world”从最后一个字符开始遍历(2)遍历的当前字符如果是大写字符,就使用 toLower Case()方法将其转换为小写字符,反之则使用 toUpper Case()方法将其转换为大写字符。( 阅读全文
posted @ 2020-05-26 10:46 bluebless 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1、设计四个类,分别是:(知识点:抽象类及抽象方法) (1)Shape表示图形类,有面积属性area、周长属性per,颜色属性color,有两个构造方法(一个是默认的、一个是为颜色赋值的),还有3个抽象方法,分别是:getArea计算面积、getPer计算周长、showAll输出所有信息,还有一个求 阅读全文
posted @ 2020-05-21 12:31 bluebless 阅读(157) 评论(1) 推荐(0) 编辑
摘要: Cola公司的雇员分为以下若干类:(知识点:多态) (1) ColaEmployee :这是所有员工总的父类,属性:员工的姓名,员工的生日月份。 方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日,则公司会额外奖励100 元。 (2) SalariedEmpl 阅读全文
posted @ 2020-05-20 01:05 bluebless 阅读(170) 评论(0) 推荐(0) 编辑