摘要: <?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-05 09:37 计算机18 阅读(50) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" x 阅读全文
posted @ 2020-10-17 17:57 计算机18 阅读(106) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.login1"> <application 阅读全文
posted @ 2020-10-17 17:50 计算机18 阅读(81) 评论(0) 推荐(0) 编辑
摘要: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_ 阅读全文
posted @ 2020-10-17 17:45 计算机18 阅读(68) 评论(0) 推荐(0) 编辑
摘要: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_ 阅读全文
posted @ 2020-09-22 17:48 计算机18 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-08-31 08:46 计算机18 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 把多个企鹅的信息添加到集合中查看企鹅的数量及所有企鹅的信息删除集合中部分企鹅的元素判断集合中是否包含指定企鹅 package abc; import java.util.ArrayList; public class test { public static void main(String[] a 阅读全文
posted @ 2020-06-01 08:27 计算机18 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个随机生成 10个 0(包括) 到 100 之间的随机正整数。 package str; import java.util.Random; public class bas { public static void main(String[] args) { // TODO Auto-ge 阅读全文
posted @ 2020-05-28 11:11 计算机18 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个程序,实现字符串大小写的转换并倒序输出。要求如下(1)使用for循环将字符串“ Hello world”从最后一个字符开始遍历(2)遍历的当前字符如果是大写字符,就使用 toLower Case()方法将其转换为小写字符,反之则使用 toUpper Case()方法将其转换为大写字符。( 阅读全文
posted @ 2020-05-25 08:33 计算机18 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1、设计四个类,分别是:(知识点:抽象类及抽象方法) (1)Shape表示图形类,有面积属性area、周长属性per,颜色属性color,有两个构造方法(一个是默认的、一个是为颜色赋值的),还有3个抽象方法,分别是:getArea计算面积、getPer计算周长、showAll输出所有信息,还有一个求 阅读全文
posted @ 2020-05-21 11:38 计算机18 阅读(157) 评论(0) 推荐(0) 编辑