摘要: 1.返回键实现对话框弹出是否退出应用程序 1 package com.example.myapplication; 2 3 import androidx.appcompat.app.AppCompatActivity; 4 5 import android.app.AlertDialog; 6 i 阅读全文
posted @ 2021-10-07 15:38 唐一南 阅读(40) 评论(0) 推荐(0)
摘要: 1.创建3个界面 第一个界面有3个button 第二个界面有单选按钮 学历:初中 高中 专科 本科 第三个界面有5个复选框 学过哪些课程 Java Ios Android Html Jsp 把第二个界面设置为启动界面 1 <?xml version="1.0" encoding="utf-8"?> 阅读全文
posted @ 2021-10-07 15:28 唐一南 阅读(27) 评论(0) 推荐(0)
摘要: 1.安装环境,截图编程界面,截图运行界面 2.九宫格 1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 and 阅读全文
posted @ 2021-10-07 15:18 唐一南 阅读(50) 评论(0) 推荐(0)
摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2.界面2点击按钮隐式意图开启界面3要求,按钮点击功能使用setOnclickListener方式 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http 阅读全文
posted @ 2021-10-07 15:02 唐一南 阅读(33) 评论(0) 推荐(0)
摘要: 1.Cola公司的雇员分为以下若干类:(知识点:多态) [必做题]• 4.1 ColaEmployee :这是所有员工总的父类,属性:员工的姓名,员工的生日月份。方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日,则公司会额外奖励100 元。• 4.2 Sal 阅读全文
posted @ 2021-07-14 13:43 唐一南 阅读(87) 评论(0) 推荐(0)
摘要: 2、设计2个类,要求如下:(知识点:类的继承 方法的覆 盖) [必做题] 2.1 定义一个汽车类Vehicle, 2.1.1 属性包括:汽车品牌brand(String类型)、颜色clr (String类型)和速度speed(duble类型)。 2.1.2 至少提供一个有参的构造方法(要求品牌和颜色 阅读全文
posted @ 2021-07-14 13:38 唐一南 阅读(70) 评论(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-07-14 13:31 唐一南 阅读(52) 评论(0) 推荐(0)
摘要: 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 1 package work10; 2 3 public class test1 { 4 5 /** 6 * @param args 7 */ 8 public static void main(String[] args) { 9 // T 阅读全文
posted @ 2021-05-11 17:24 唐一南 阅读(59) 评论(0) 推荐(0)
摘要: 1.编写一个简单程序 1 public class Yu { 2 3 /** 4 * @param args 5 */ 6 public static void main(String[] args) { 7 // TODO Auto-generated method stub 8 int a[] 阅读全文
posted @ 2021-04-27 16:18 唐一南 阅读(90) 评论(0) 推荐(0)
摘要: 练习 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 1 package Third; 2 3 public class D1 { 4 5 /** 6 * @param args 7 */ 8 public static void main(S 阅读全文
posted @ 2021-04-27 15:51 唐一南 阅读(52) 评论(0) 推荐(0)