摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2. , <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app 阅读全文
posted @ 2021-10-08 08:06 蓝桉亞 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1.返回键实现对话框弹出是否退出应用程序package com.example.myapplication; import android.os.Bundle; import android.app.Activity; import android.app.AlertDialog; import a 阅读全文
posted @ 2021-10-08 07:44 蓝桉亞 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1.创建3个界面 第一个界面有3个button <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="htt 阅读全文
posted @ 2021-10-07 22:41 蓝桉亞 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 作业1:安装环境,截图编程界面,截图运行界面 作业2:九宫格 <View android:id="@+id/v_1" android:layout_width="100dp" android:layout_height="100dp" android:background="#F5A773" and 阅读全文
posted @ 2021-10-06 19:32 蓝桉亞 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值。(知识点:数组定义和创建、一维数组初始化)[必做题] package zxc; import java.util.Scanner; public class Text1 { /** * @param a 阅读全文
posted @ 2021-04-30 09:59 蓝桉亞 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 package Test; public class Test1 { public static void main(String[] args) { int []a = new int []{10, 阅读全文
posted @ 2021-04-23 09:45 蓝桉亞 阅读(18) 评论(0) 推荐(0) 编辑
摘要: public class test1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int a,b,c,n; n=345; a=n/100; b=n 阅读全文
posted @ 2021-03-14 19:10 蓝桉亞 阅读(40) 评论(0) 推荐(0) 编辑
摘要: public class 作业1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("193230439 计算机1 阅读全文
posted @ 2021-03-07 23:09 蓝桉亞 阅读(32) 评论(0) 推荐(0) 编辑