摘要: 环境搭建,运行出来一个JSP页面,显式hello 1 <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 2 <% 3 String path = request.getContextPath(); 4 Strin 阅读全文
posted @ 2022-03-06 16:45 计算机1905geng 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:tools="http://schemas.andr 阅读全文
posted @ 2021-11-04 21:02 计算机1905geng 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2.界面2点击按钮隐式意图开启界面3 2.在界面1做一个按钮开启浏览器访问百度 1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schem 阅读全文
posted @ 2021-10-09 16:25 计算机1905geng 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1.返回键实现对话框弹出是否退出应用程序 1 package cn.itcast.myapplication; 2 3 import androidx.appcompat.app.ActionBar; 4 import androidx.appcompat.app.AlertDialog; 5 im 阅读全文
posted @ 2021-09-26 17:44 计算机1905geng 阅读(14) 评论(0) 推荐(0) 编辑
摘要: Cola公司的雇员分为以下若干类:(知识点:多态) [必做题]• 4.1 ColaEmployee :这是所有员工总的父类,属性:员工的姓名,员工的生日月份。方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日,则公司会额外奖励100 元。 • 4.2 Sala 阅读全文
posted @ 2021-06-18 18:49 计算机1905geng 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 2、设计2个类,要求如下:(知识点:类的继承 方法的覆 盖) [必做题] 2.1 定义一个汽车类Vehicle, 2.1.1 属性包括:汽车品牌brand(String类型)、颜色clr (String类型)和速度speed(duble类型)。 2.1.2 至少提供一个有参的构造方法(要求品牌和颜色 阅读全文
posted @ 2021-06-18 18:06 计算机1905geng 阅读(42) 评论(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 18:05 计算机1905geng 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 1 package G1; 2 3 public class G1 { 4 public static void maopao(int[] x) { 5 for (int i = x.length - 1; i > 0; i--) { 6 f 阅读全文
posted @ 2021-05-12 17:52 计算机1905geng 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 1、编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值。(知识点:数组定义和创建、一维数组初始化)[必做题]? 1 package G1; 2 3 public class G1 { 4 5 public static void main(String[ 阅读全文
posted @ 2021-04-27 19:22 计算机1905geng 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 1 package G; 2 3 public class G1 { 4 5 public static void main(String[] args) { 6 // TODO Auto-gener 阅读全文
posted @ 2021-04-20 18:55 计算机1905geng 阅读(255) 评论(0) 推荐(0) 编辑