摘要: 环境搭建,运行出来一个JSP页面,显式hello 英文字母表 1 <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 2 <% 3 String path = request.getContextPath(); 4 阅读全文
posted @ 2022-03-05 19:31 1902sjw 阅读(27) 评论(0) 推荐(0) 编辑
摘要: <?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-04 19:31 1902sjw 阅读(10) 评论(0) 推荐(0) 编辑
摘要: package com.example.myapplication211018; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; imp 阅读全文
posted @ 2021-10-31 20:07 1902sjw 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2. 界面2点击按钮隐式意图开启界面32.在界面1做一个按钮开启浏览器访问百度 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.and 阅读全文
posted @ 2021-10-09 00:18 1902sjw 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1.返回键实现对话框弹出是否退出应用程序 package com.example.dfsfrr; import android.os.Bundle; import android.app.Activity; import android.app.AlertDialog; import android 阅读全文
posted @ 2021-09-25 00:49 1902sjw 阅读(42) 评论(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-09-04 20:34 1902sjw 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 作业1:安装环境,截图编程界面,截图 作业2:九宫格 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layo 阅读全文
posted @ 2021-08-25 21:21 1902sjw 阅读(67) 评论(0) 推荐(0) 编辑
摘要: Cola公司的雇员分为以下若干类:(知识点:多态) [必做题]• 4.1 ColaEmployee :这是所有员工总的父类,属性:员工的姓名,员工的生日月份。方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日,则公司会额外奖励100 元。• 4.2 Salar 阅读全文
posted @ 2021-06-17 23:34 1902sjw 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 2、设计2个类,要求如下:(知识点:类的继承 方法的覆盖) [必做题]2.1 定义一个汽车类Vehicle,2.1.1 属性包括:汽车品牌brand(String类型)、颜色color(String类型)和速度speed(double类型)。2.1.2 至少提供一个有参的构造方法(要求品牌和颜色可以 阅读全文
posted @ 2021-06-17 23:19 1902sjw 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1.定义一个点类Point, 包含2个成员变量x、y分别表示x和y坐标,2个构造器Point()和Point( intx0,y0),以及一个movePoint (int dx,intdy)方法实现点的位置移动,创建两个Point对象p1、p2, 分别调用movePoint方法后,打印pl和p2的坐标 阅读全文
posted @ 2021-05-24 20:29 1902sjw 阅读(50) 评论(0) 推荐(0) 编辑