摘要: 1.环境搭建,运行出来一个JSP页面,显式hello <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%> <% String path = request.getContextPath(); String 阅读全文
posted @ 2022-03-05 12:59 &+-wbs 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 1 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.co 阅读全文
posted @ 2021-11-04 18:50 &+-wbs 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 1 <Button android:id="@+id/bt_1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#F2B4FC" android:text="显 阅读全文
posted @ 2021-10-09 15:09 &+-wbs 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 1.返回键实现对话框弹出是否退出应用程序 package com.example.chap03; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import an 阅读全文
posted @ 2021-09-26 18:21 &+-wbs 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1.创建3个界面 第一个界面有3个button 第二个界面有单选按钮 学历:初中 高中 专科 本科 第三个界面有5个复选框 学过哪些课程 Java Ios Android Html Jsp <?xml version="1.0" encoding="utf-8"?> <RelativeLayout 阅读全文
posted @ 2021-09-26 17:36 &+-wbs 阅读(142) 评论(0) 推荐(0) 编辑
摘要: package txt; public class em { String name; int moth; public em() { super(); } public em(String name, int moth) { super(); this.name = name; this.moth 阅读全文
posted @ 2021-06-17 21:16 &+-wbs 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 2、设计2个类,要求如下:(知识点:类的继承 方法的覆 盖) [必做题] 2.1 定义一个汽车类Vehicle, 2.1.1 属性包括:汽车品牌brand(String类型)、颜色clr (String类型)和速度speed(duble类型)。 2.1.2 至少提供一个有参的构造方法(要求品牌和颜色 阅读全文
posted @ 2021-06-10 23:55 &+-wbs 阅读(78) 评论(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-25 16:06 &+-wbs 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 1编写一个方法,实现冒泡排序法(由小到大),并调用该方法 import java.util.Scanner; public class txt2 { public static void txt2() { Scanner input = new Scanner(System.in); System. 阅读全文
posted @ 2021-05-11 15:06 &+-wbs 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1、编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值。(知识点:数组定义和创建、一维数组初始化)[必做题] import java.util.Scanner; public class ss { /** * @param args */ public 阅读全文
posted @ 2021-04-26 15:36 &+-wbs 阅读(123) 评论(0) 推荐(0) 编辑