2022年3月5日

jsp第一次作业

摘要: <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+ 阅读全文

posted @ 2022-03-05 21:38 chenyulin11 阅读(11) 评论(0) 推荐(0) 编辑

2021年11月4日

第十一 十二周作业

摘要: 1.import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputS 阅读全文

posted @ 2021-11-04 20:10 chenyulin11 阅读(8) 评论(0) 推荐(0) 编辑

2021年10月9日

第七周作业

摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2. 界面2点击按钮隐式意图开启界面3 <Button android:id="@+id/bt_1" android:layout_width="wrap_content" android:layout_height="wrap_content" an 阅读全文

posted @ 2021-10-09 13:11 chenyulin11 阅读(9) 评论(0) 推荐(0) 编辑

2021年10月7日

第二周作业

摘要: 1.创建3个界面 第一个界面有3个button <Button android:id="@+id/bu1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLe 阅读全文

posted @ 2021-10-07 20:19 chenyulin11 阅读(22) 评论(0) 推荐(0) 编辑

2021年9月25日

第五六周作业

摘要: 1.返回键实现对话框弹出是否退出应用程序 package com.example.chap5; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import and 阅读全文

posted @ 2021-09-25 20:15 chenyulin11 阅读(26) 评论(0) 推荐(0) 编辑

2021年8月30日

第一次作业

摘要: 2. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rl_1" android:la 阅读全文

posted @ 2021-08-30 12:02 chenyulin11 阅读(24) 评论(0) 推荐(0) 编辑

2021年6月9日

第十四周作业

摘要: 2、设计2个类,要求如下:(知识点:类的继承 方法的覆 盖) [必做题] 2.1 定义一个汽车类Vehicle, 2.1.1 属性包括:汽车品牌brand(String类型)、颜色clr (String类型)和速度speed(duble类型)。 2.1.2 至少提供一个有参的构造方法(要求品牌和颜色 阅读全文

posted @ 2021-06-09 20:42 chenyulin11 阅读(23) 评论(0) 推荐(0) 编辑

2021年5月24日

java第十二周作业

摘要: 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 22:20 chenyulin11 阅读(34) 评论(0) 推荐(0) 编辑

2021年5月9日

java第十周作业

摘要: 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 package homework; import java.util.Scanner; public class tets31 { public static void main(String[] args) { int[] arr = ne 阅读全文

posted @ 2021-05-09 21:21 chenyulin11 阅读(36) 评论(0) 推荐(0) 编辑

2021年4月27日

java第八次作业

摘要: 1.编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值。(知识点:数组定义和创建、一维数组初始化)[必做题]? package TenDay; import java.util.Scanner; public class Test1 { public s 阅读全文

posted @ 2021-04-27 12:52 chenyulin11 阅读(68) 评论(0) 推荐(0) 编辑

导航