摘要: 环境搭建,运行出来一个JSP页面,显式hello <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Title</title> </head> <body> hello </b 阅读全文
posted @ 2022-03-05 11:53 丁朝明 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 1.用内部存储实现文件写入和读取功能 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_widt 阅读全文
posted @ 2021-11-03 19:57 丁朝明 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2.界面2点击按钮隐式意图开启界面3 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.androi 阅读全文
posted @ 2021-10-09 09:30 丁朝明 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1.返回键实现对话框弹出是否退出应用程序 package com.example.chap5; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import and 阅读全文
posted @ 2021-09-25 20:33 丁朝明 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1.创建3个界面 第一个界面有3个button 第二个界面有单选按钮 学历:初中 高中 专科 本科 第三个界面有5个复选框 学过哪些课程 Java Ios Android Html Jsp 把第二个界面设置为启动界面 <?xml version="1.0" encoding="utf-8"?> <R 阅读全文
posted @ 2021-09-03 09:33 丁朝明 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 作业1:安装环境,截图编程界面,截图运行界面 作业2:九宫格 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns 阅读全文
posted @ 2021-08-29 15:01 丁朝明 阅读(31) 评论(0) 推荐(0) 编辑
摘要: package Cola; public class ColaEmployee { protected String name; protected int month; private int birthday; public String getName() { return name; } p 阅读全文
posted @ 2021-06-18 12:51 丁朝明 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 2、设计2个类,要求如下:(知识点:类的继承 方法的覆 盖) [必做题] 2.1 定义一个汽车类Vehicle, 2.1.1 属性包括:汽车品牌brand(String类型)、颜色clr (String类型)和速度speed(duble类型)。 2.1.2 至少提供一个有参的构造方法(要求品牌和颜色 阅读全文
posted @ 2021-06-06 13:56 丁朝明 阅读(81) 评论(0) 推荐(0) 编辑
摘要: public class point { int x; int y; public point(int x0, int y0) { super(); this.x = x0; this.y = y0; } public point() { super(); } public String moveP 阅读全文
posted @ 2021-05-23 17:44 丁朝明 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 1 public void sor(int a[]){ 2 int mid=0; 3 for (int i = 0; i < a.length; i++) { 4 for (int j = 0; j < a.length-1; j++) { 阅读全文
posted @ 2021-05-09 08:29 丁朝明 阅读(49) 评论(0) 推荐(0) 编辑