摘要: 环境搭建,运行出来一个JSP页面,显式hello <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePa 阅读全文
posted @ 2022-03-06 16:52 计算机1904黄尚炜 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 图片一 用内部存储实现文件写入和读取功能 package com.example.innerfilesave; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view 阅读全文
posted @ 2021-11-04 22:45 计算机1904黄尚炜 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2.界面2点击按钮隐式意图开启界面3 <Button android:id="@+id/bt_1" android:layout_width="wrap_content" android:layout_height="wrap_content" and 阅读全文
posted @ 2021-10-09 16:19 计算机1904黄尚炜 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1.返回键实现对话框弹出是否退出应用程序 package com.example.week5; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.app.AlertDia 阅读全文
posted @ 2021-09-26 19:22 计算机1904黄尚炜 阅读(23) 评论(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 04:57 计算机1904黄尚炜 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 package text1; import java.util.Scanner; public class Homework1{ public static void maopao() { Scanner input = new Scanne 阅读全文
posted @ 2021-05-12 18:10 计算机1904黄尚炜 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 public class sds { /** * @param args */ public static void main(String[] args) { // TODO Auto-gene 阅读全文
posted @ 2021-04-19 18:36 计算机1904黄尚炜 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 1.使用for循环计算1-100的和,除了以3结尾的那些数 public class hhh { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int 阅读全文
posted @ 2021-04-13 17:27 计算机1904黄尚炜 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1.分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) while循环 public class hhh { /** * @param args */ public static void main(String[] args) { // TO 阅读全文
posted @ 2021-04-07 19:14 计算机1904黄尚炜 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 1.输入一个年份,判断是不是闰年(能被4整除但不能被100整除,或者能被400整除) import java.util.Scanner;public class hhh { /*** @param args*/public static void main(String[] args) {// TO 阅读全文
posted @ 2021-03-30 17:48 计算机1904黄尚炜 阅读(57) 评论(0) 推荐(0) 编辑