摘要:
环境搭建,运行出来一个JSP页面,显式hello . 英文字母表 <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); Strin 阅读全文
摘要:
1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent" a 阅读全文
摘要:
1. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.andro 阅读全文
摘要:
1. package com.example.myapplication; import androidx.appcompat.app.AppCompatActivity; import android.app.AlertDialog; import android.content.DialogIn 阅读全文
摘要:
1. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.c 阅读全文
摘要:
1. 2. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.an 阅读全文
摘要:
4.Cola公司的雇员分为以下若干类:(知识点:多态)4.1 ColaEmployee :这是所有员工总的父类,属性:员工的姓名,员工的生日月份。方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日,则公司会额外奖励100 元。4.2 SalariedEmplo 阅读全文
摘要:
2、设计2个类,要求如下:(知识点:类的继承 方法的覆 盖) [必做题] 2.1 定义一个汽车类Vehicle, 2.1.1 属性包括:汽车品牌brand(String类型)、颜色clr (String类型)和速度speed(duble类型)。 2.1.2 至少提供一个有参的构造方法(要求品牌和颜色 阅读全文
摘要:
1. 定义一个点Point,包含2个成员变量x、y分别表示x、y坐标,2个构造器Point()和Point(int x0,y0),以及一个movePoint(int dx,int dy)方法实现点的位置移动,创建两个Point对象p1,p2,分别调用movePoint方法后,打印p1和p2的坐标。 阅读全文
摘要:
1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 package aaa; import java.util.Scanner; public class Test1 { public static void Test1(){ Scanner input=new Scanner(System. 阅读全文