摘要: package com.example.myapplication; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android 阅读全文
posted @ 2021-11-04 22:12 李芊 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2.界面2点击按钮隐式意图开启界面3 package com.example.work; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; i 阅读全文
posted @ 2021-10-09 15:31 李芊 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1.返回键实现对话框弹出是否退出应用程序 package com.example.myapplication; import androidx.appcompat.app.AppCompatActivity; import android.app.AlertDialog; import androi 阅读全文
posted @ 2021-09-25 00:47 李芊 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1. 2. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rl_1" android 阅读全文
posted @ 2021-08-25 23:14 李芊 阅读(50) 评论(0) 推荐(0) 编辑
摘要: package School.Day13; public class ColaEmployee { String name; int month; double money; public double getSalary(int month){ if (month == this.month) { 阅读全文
posted @ 2021-06-17 14:10 李芊 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 1. package School.Day12; public class Vehicle { String brand; String color; double speed; public Vehicle(String brand, String color) { this.brand = br 阅读全文
posted @ 2021-06-06 14:56 李芊 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 1. package School.Day11; public class Point { int x; int y; public Point(){ } public Point(int x,int y){ this.x = x; this.y = y; } public void movePoi 阅读全文
posted @ 2021-05-23 15:52 李芊 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 package School.Day10; public class Test01 { public static void main(String[] args) { int[] x = {9,1,2,7,6,3,4,10,8,5}; ma 阅读全文
posted @ 2021-05-07 22:15 李芊 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值 package School.Day9; public class Test01 { public static void main(String[] args) { int[] a = {10, 阅读全文
posted @ 2021-04-24 14:02 李芊 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 package School.Day8; public class Test01 { public static void main(String[] args){ int[] x = {10,2 阅读全文
posted @ 2021-04-16 16:42 李芊 阅读(50) 评论(0) 推荐(0) 编辑