摘要: 环境搭建,运行出来一个JSP页面,显式hello <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePa 阅读全文
posted @ 2022-03-04 17:29 刘德广 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 图片一 用内部存储实现文件写入和读取功能 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http:/ 阅读全文
posted @ 2021-11-01 19:54 刘德广 阅读(19) 评论(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-08 18:40 刘德广 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1.返回键实现对话框弹出是否退出应用程序 import android.os.Bundle; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; im 阅读全文
posted @ 2021-09-25 20:36 刘德广 阅读(12) 评论(0) 推荐(0) 编辑
摘要: Cola公司的雇员分为以下若干类:(知识点:多态) [必做题]• 4.1 ColaEmployee :这是所有员工总的父类,属性:员工的姓名,员工的生日月份。方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日,则公司会额外奖励100 元。• 4.2 Salar 阅读全文
posted @ 2021-06-18 12:51 刘德广 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 2、设计2个类,要求如下:(知识点:类的继承 方法的覆盖) [必做题]• 2.1 定义一个汽车类Vehicle,• 2.1.1 属性包括:汽车品牌brand(String类型)、颜色color(String类型)和速度speed(double类型)。• 2.1.2 至少提供一个有参的构造方法(要求品 阅读全文
posted @ 2021-06-18 12:46 刘德广 阅读(44) 评论(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-23 20:01 刘德广 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法。 package cn; public class Test1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated me 阅读全文
posted @ 2021-05-10 20:10 刘德广 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值。(知识点:数组定义和创建、一维数组初始化)[必做题]? 1 package test; 2 3 public class TestArray1 { 4 // 1、编写一个简单程序,要求数组长度为5, 阅读全文
posted @ 2021-04-24 13:44 刘德广 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 package test; public class Test1 { /* * 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 */ pub 阅读全文
posted @ 2021-04-16 21:26 刘德广 阅读(72) 评论(0) 推荐(0) 编辑