摘要: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.co 阅读全文
posted @ 2021-11-05 11:33 曹新 阅读(31) 评论(0) 推荐(0) 编辑
摘要: package com.example.myapplication211018; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; imp 阅读全文
posted @ 2021-11-05 11:30 曹新 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2.界面2点击按钮隐式意图开启界面3 2.在界面1做一个按钮开启浏览器访问百度 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools 阅读全文
posted @ 2021-10-09 17:12 曹新 阅读(19) 评论(0) 推荐(0) 编辑
摘要: package com.example.test; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import android.content.DialogInt 阅读全文
posted @ 2021-09-26 17:12 曹新 阅读(20) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" a 阅读全文
posted @ 2021-09-05 09:01 曹新 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 作业1:安装环境,截图编程界面,截图运行界面 作业2:九宫格 <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" androi 阅读全文
posted @ 2021-08-28 14:06 曹新 阅读(44) 评论(0) 推荐(0) 编辑
摘要: package gkd; public abstract class ColaEmployee { private String name; private int month; public ColaEmployee(){ } public ColaEmployee(String name, in 阅读全文
posted @ 2021-06-18 20:00 曹新 阅读(34) 评论(0) 推荐(0) 编辑
摘要: package oop; public class Vehicle { private String brand; private String color; private double speed; public Vehicle(String brand,String color,double 阅读全文
posted @ 2021-06-15 19:49 曹新 阅读(42) 评论(0) 推荐(0) 编辑
摘要: public class Point { int x; int y; public Point(){ } public Point(int x0,int y0){ this.x=x0; this.y=y0; } public void movePoint(int dx,int dy){ x=x+dx 阅读全文
posted @ 2021-05-25 19:23 曹新 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 编写一个方法,实现冒泡排序(由小到大),并调用该方法 public class Maopao { public static void asdcr(int a[]){ for (int i = 0; i < a.length; i++) { for (int j = 0; j < a.length; 阅读全文
posted @ 2021-05-12 14:20 曹新 阅读(39) 评论(0) 推荐(0) 编辑