摘要: 上机任务 1.搭建环境,建个工程,输出hello 2.输出字母表 <%@pagelanguage="java"import="java.util.*"pageEncoding="utf-8"%> <% String path = request.getContextPath(); String ba 阅读全文
posted @ 2022-03-07 11:20 陈杭威 阅读(18) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/ 阅读全文
posted @ 2021-11-07 19:16 陈杭威 阅读(10) 评论(0) 推荐(0) 编辑
摘要: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_ 阅读全文
posted @ 2021-10-09 16:19 陈杭威 阅读(11) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android. 阅读全文
posted @ 2021-10-07 20:17 陈杭威 阅读(9) 评论(0) 推荐(0) 编辑
摘要: package itcast.cn; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.app.Activity; publ 阅读全文
posted @ 2021-09-25 20:47 陈杭威 阅读(23) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rl_1" android:layou 阅读全文
posted @ 2021-09-25 20:38 陈杭威 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 2、设计2个类,要求如下:(知识点:类的继承 方法的覆 盖) [必做题] 2.1 定义一个汽车类Vehicle, 2.1.1 属性包括:汽车品牌brand(String类型)、颜色clr (String类型)和速度speed(duble类型)。 2.1.2 至少提供一个有参的构造方法(要求品牌和颜色 阅读全文
posted @ 2021-06-15 19:40 陈杭威 阅读(61) 评论(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-06-10 20:11 陈杭威 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 package text; public class java98 { //编写一个方法,实现冒泡排序(由小到大),并调用该方法 public static void paixu(int []a){ for (int i = 0; i < a 阅读全文
posted @ 2021-06-10 19:53 陈杭威 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1、编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值。(知识点:数组定义和创建、一维数组初始化)[必做题]? packagewwe; publicclassjv { publicstaticvoid main(String[] args) { int 阅读全文
posted @ 2021-04-27 15:45 陈杭威 阅读(55) 评论(0) 推荐(0) 编辑