摘要: 1. <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%> <% String path = request.getContextPath(); String basePath = request.getS 阅读全文
posted @ 2022-03-03 16:12 MaLD 阅读(14) 评论(0) 推荐(0) 编辑
摘要: package com.example.innerfilesave; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android 阅读全文
posted @ 2021-11-02 11:58 MaLD 阅读(33) 评论(0) 推荐(0) 编辑
摘要: package com.example.myapplication; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import an 阅读全文
posted @ 2021-11-02 11:55 MaLD 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2.界面2点击按钮隐式意图开启界面3 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/an 阅读全文
posted @ 2021-10-08 22:33 MaLD 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1. package com.example.myapplication; import android.os.Bundle; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertD 阅读全文
posted @ 2021-10-07 19:37 MaLD 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android 阅读全文
posted @ 2021-10-07 19:23 MaLD 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1:安装环境,截图编程界面,截图运行界面 2 九宫格 1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xml 阅读全文
posted @ 2021-08-29 12:58 MaLD 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 1. Cola公司的雇员分为以下若干类:(知识点:多态) [必做 题]• 1.1 ColaEmployee :这是所有员工总的父类,属性:员工的姓名,员工的生日月份。方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日,则公司会额外奖励100 元。• 1.2 S 阅读全文
posted @ 2021-06-15 23:42 MaLD 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 1. 设计2个类,要求如下:(知识点:类的继承 方法的覆盖) [必做题] • 1.1 定义一个汽车类Vehicle,• 1.1.1 属性包括:汽车品牌brand(String类型)、颜色color(String类型)和速度speed(double类型)。• 1.1.2 至少提供一个有参的构造方法(要 阅读全文
posted @ 2021-06-10 15:57 MaLD 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 1. package homework; public class Point { int x; int y; public Point() { super(); } public Point(int x0, int y0) { super(); this.x = x0; this.y = y0; 阅读全文
posted @ 2021-05-24 22:05 MaLD 阅读(49) 评论(0) 推荐(0) 编辑