摘要: <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+ 阅读全文
posted @ 2022-03-03 18:43 计算机1905方骏 阅读(4) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an 阅读全文
posted @ 2021-11-04 18:28 计算机1905方骏 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2.界面2点击按钮隐式意图开启界面3 2.在界面1做一个按钮开启浏览器访问百度 package com.example.app6; import android.os.Bundle; import android.app.Activity; impor 阅读全文
posted @ 2021-10-07 14:48 计算机1905方骏 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1.返回键实现对话框弹出是否退出应用程序 package com.example.commondialog; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; imp 阅读全文
posted @ 2021-10-07 14:42 计算机1905方骏 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1.创建3个界面 第一个界面有3个button <Button android:id="@+id/bu1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLe 阅读全文
posted @ 2021-10-07 14:36 计算机1905方骏 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 作业1:安装环境,截图编程界面,截图运行界面 作业2:九宫格 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns 阅读全文
posted @ 2021-10-07 14:30 计算机1905方骏 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 2、设计2个类,要求如下:(知识点:类的继承 方法的覆 盖) [必做题] • 2.1 定义一个汽车类Vehicle, • 2.1.1 属性包括:汽车品牌brand(String类型)、颜色color (String类型)和速度speed(double类型)。 • 2.1.2 至少提供一个有参的构造方 阅读全文
posted @ 2021-06-11 19:41 计算机1905方骏 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 1.定义一个点类Point,包含两个成员变量x,y分别表示x和y坐标,2个构造器Point( )和Point(int x0,int y0),以及一个movePoint(int dx,int dy)方法实现点的位置移动,创建两个Point对象p1、p2,分别调用movePoint方法后,打印p1和p2 阅读全文
posted @ 2021-05-25 14:14 计算机1905方骏 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 课堂练习:两个数求平方和: package com.fj.good; public class Word1 { public static int sum(int a, int b) { return a * a + b * b; } public static void main(String[] 阅读全文
posted @ 2021-05-12 16:46 计算机1905方骏 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值。(知识点:数组定义和创建、一维数组初始化) package com.fj.sjlx; public class Sjlx1 { /** * @param args */ public static 阅读全文
posted @ 2021-04-27 15:47 计算机1905方骏 阅读(47) 评论(0) 推荐(0) 编辑