摘要: 图片一 用内部存储实现文件写入和读取功能 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http:/ 阅读全文
posted @ 2021-11-03 17:53 cccccccU- 阅读(48) 评论(0) 推荐(0) 编辑
摘要: <Button android:id="@+id/bt_1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#F2B4FC" android:text="显示意 阅读全文
posted @ 2021-10-09 15:27 cccccccU- 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1.返回键实现对话框弹出是否退出应用程序 package com.example.chap03; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import an 阅读全文
posted @ 2021-09-26 19:03 cccccccU- 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1.创建3个页面 第一个界面有3个button 第二个界面有单选按钮 学历:初中 高中 专科 本科 第三个界面有5个复选框 学过哪些课程 Java Ios Android Html Jsp 把第二个界面设置为启动界面 <?xml version="1.0" encoding="utf-8"?> <R 阅读全文
posted @ 2021-09-26 17:23 cccccccU- 阅读(21) 评论(0) 推荐(0) 编辑
摘要: package work; public class ColaEmployee { protected String name; protected int month; public double getSalary(int month) { return 0; } public ColaEmpl 阅读全文
posted @ 2021-06-18 18:40 cccccccU- 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 老师:Teacher丹丹 提交作业 2、设计2个类,要求如下:(知识点:类的继承 方法的覆 盖) [必做题] 2.1 定义一个汽车类Vehicle, 2.1.1 属性包括:汽车品牌brand(String类型)、颜色clr (String类型)和速度speed(duble类型)。 2.1.2 至少 阅读全文
posted @ 2021-06-11 00:05 cccccccU- 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 1、定义一个点类Point, 包含2个成员变量x、y分别表示x和y坐标,2个构造器Point()和Point( intx0,y0),以及一个movePoint (int dx,intdy)方法实现点的位置移动,创建两个Point对象p1、p2, 分别调用movePoint方法后,打印pl和p2的坐标 阅读全文
posted @ 2021-05-25 20:17 cccccccU- 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 import java.util.Scanner; public class zxcz { public static void px() { Scanner input = new Scanner(System.in); System.ou 阅读全文
posted @ 2021-05-08 20:56 cccccccU- 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 1、编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值。(知识点:数组定义和创建、一维数组初始化)[必做题] import java.util.Random; import java.util.Scanner; public class ss { /** 阅读全文
posted @ 2021-04-24 21:02 cccccccU- 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 上机作业: 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 public class cxz { /** * @param args */ public static void main(String[] args) { // TODO Aut 阅读全文
posted @ 2021-04-16 11:56 cccccccU- 阅读(48) 评论(0) 推荐(0) 编辑