摘要: 1.搭建环境,建个工程,输出hello <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = 阅读全文
posted @ 2022-03-06 20:24 林清欢 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 图片一 用内部存储实现文件写入和读取功能 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http:/ 阅读全文
posted @ 2021-11-04 22:39 林清欢 阅读(28) 评论(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.c 阅读全文
posted @ 2021-10-08 20:48 林清欢 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 1 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android. 阅读全文
posted @ 2021-10-08 20:39 林清欢 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1 <View android:id="@+id/v_1" android:layout_width="100dp" android:layout_height="100dp" android:background="#000000" android:layout_centerInParent="t 阅读全文
posted @ 2021-10-08 20:35 林清欢 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1.按模拟器上返回键,实现对话框弹出“是否退出应用程序”,如果选择是,退出,选择否,不退出 package com.example.myapplication; import android.os.Bundle; import android.app.Activity; import android 阅读全文
posted @ 2021-09-26 18:13 林清欢 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值 package first; import java.util.Scanner; public class First { /** * @param args */ public static vo 阅读全文
posted @ 2021-04-20 16:06 林清欢 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 上机练习: 1.使用for循环计算1-100的和,除了以3结尾的那些数 package first; public class First { /** * @param args */ public static void main(String[] args) { // TODO Auto-gen 阅读全文
posted @ 2021-04-13 16:46 林清欢 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 上机练习 1.分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) package third; import java.util.Scanner; public class Third { public static void main(Str 阅读全文
posted @ 2021-04-07 21:01 林清欢 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 1.输入一个年份,判断是不是闰年(能被4整除但不能被100整除,或者能被400整除) package first; import java.util.Scanner; public class First { /** * @param args */ public static void main( 阅读全文
posted @ 2021-03-30 01:07 林清欢 阅读(61) 评论(0) 推荐(0) 编辑