2022年3月3日
摘要: 1. 搭建环境,建个工程,输出hello 2 输出字母表 3.输出99乘法表 <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); 阅读全文
posted @ 2022-03-03 21:23 李昌璇 阅读(23) 评论(0) 推荐(0) 编辑
  2021年11月4日
摘要: 一.用内部存储实现文件写入和读取功能package com.example.myapplication; import androidx.appcompat.app.AppCompatActivity; import android.icu.text.UnicodeSetSpanner; impor 阅读全文
posted @ 2021-11-04 23:16 李昌璇 阅读(32) 评论(0) 推荐(0) 编辑
  2021年10月7日
摘要: 1三个界面,界面1点击按钮使用显式意图开启界面2. 界面2点击按钮隐式意图开启界面3,在界面1做一个按钮开启浏览器访问百度 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="ht 阅读全文
posted @ 2021-10-07 20:28 李昌璇 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1 .安装环境,截图编程界面,截图运行界面 2.九宫格 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="300dp" android:layout_heigh 阅读全文
posted @ 2021-10-07 20:01 李昌璇 阅读(6) 评论(0) 推荐(0) 编辑
  2021年6月18日
摘要: Cola公司的雇员分为以下若干类:(知识点:多态) [必做题]• 4.1 ColaEmployee :这是所有员工总的父类,属性:员工的姓名,员工的生日月份。方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日,则公司会额外奖励100 元。• 4.2 Salar 阅读全文
posted @ 2021-06-18 17:51 李昌璇 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 2、设计2个类,要求如下:(知识点:类的继承 方法的覆 盖) [必做题] 2.1 定义一个汽车类Vehicle, 2.1.1 属性包括:汽车品牌brand(String类型)、颜色clr (String类型)和速度speed(duble类型)。 2.1.2 至少提供一个有参的构造方法(要求品牌和颜色 阅读全文
posted @ 2021-06-18 17:15 李昌璇 阅读(69) 评论(0) 推荐(0) 编辑
  2021年5月25日
摘要: 1、定义一个点类Point,包含2个成员变量x、y分 别表示x和y坐标,2个构造器Point()和Point(int x0,y0),以及一个movePoint(int dx,int dy)方法实 现点的位置移动,创建两个Point对象p1、p2,分 别调用movePoint方法后,打印p1和p2的坐 阅读全文
posted @ 2021-05-25 16:09 李昌璇 阅读(59) 评论(0) 推荐(0) 编辑
  2021年5月12日
摘要: 1. public class lcx { public static void mp() { Scanner input = new Scanner(System.in); int a[] = new int[5]; System.out.println("请输入5个数:"); for (int 阅读全文
posted @ 2021-05-12 14:07 李昌璇 阅读(39) 评论(0) 推荐(0) 编辑
  2021年4月26日
摘要:  提交作业 1、编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值。(知识点:数组定义和创建、一维数组初始化)[必做题]• int[] a = { 10, 20, 30, 40, 50 }; for (int i = 0; i < a.length; 阅读全文
posted @ 2021-04-26 22:29 李昌璇 阅读(88) 评论(0) 推荐(0) 编辑
  2021年4月19日
摘要: 上机练习 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 int[] a = { 10, 20, 30, 40, 50 }; for (int i = 0; i < a.length; i++) { System.out.println(a[i 阅读全文
posted @ 2021-04-19 23:37 李昌璇 阅读(25) 评论(0) 推荐(0) 编辑