摘要: switch(expression){ case value : //语句 break; //可选 case value : //语句 break; //可选 //你可以有任意数量的case语句 default : //可选 //语句 } switch case 语句有如下规则: switch 语句 阅读全文
posted @ 2023-03-11 22:06 听着DJ读童话 阅读(90) 评论(0) 推荐(0)
摘要: 条件语句 public class Test { public static void main(String args[]){ int x = 10; if( x < 20 ){ System.out.print("这是 if 语句"); } } } public class Test { pub 阅读全文
posted @ 2023-03-10 22:18 听着DJ读童话 阅读(90) 评论(0) 推荐(0)
摘要: 公有私有 public class ClassName { // ... } private boolean myFlag; static final double weeks = 9.5; protected static final int BOXWIDTH = 42; public stati 阅读全文
posted @ 2023-03-09 22:44 听着DJ读童话 阅读(19) 评论(0) 推荐(0)
摘要: 温故知新 public class Test { public static void main(String[] args) { int x = 10; while( x < 20 ) { System.out.print("value of x : " + x ); x++; System.ou 阅读全文
posted @ 2023-03-08 23:11 听着DJ读童话 阅读(73) 评论(0) 推荐(0)
摘要: public class PrimitiveTypeTest { public static void main(String[] args) { // byte System.out.println("基本类型:byte 二进制位数:" + Byte.SIZE); System.out.print 阅读全文
posted @ 2023-03-07 23:04 听着DJ读童话 阅读(83) 评论(0) 推荐(0)
摘要: 温故而知新 /* public static void main(String[] args) { //String args[] 与 String[] args 都可以执行,但推荐使用 String[] args,这样可以避免歧义和误读。 System.out.println("Hello wor 阅读全文
posted @ 2023-03-06 21:06 听着DJ读童话 阅读(19) 评论(0) 推荐(0)
摘要: 啥也没学 阅读全文
posted @ 2023-03-05 23:03 听着DJ读童话 阅读(10) 评论(0) 推荐(0)
摘要: 完善了一下增删改查; package dailysummer; import java.sql.DriverManager;import java.sql.Connection; public class Main { public void write(String title,String co 阅读全文
posted @ 2023-03-04 21:01 听着DJ读童话 阅读(17) 评论(0) 推荐(0)
摘要: 今天没课,啥也没学 阅读全文
posted @ 2023-03-03 23:41 听着DJ读童话 阅读(9) 评论(0) 推荐(0)
摘要: <%@page import="dailysummer.Main" %><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ page import="java.io.*,j 阅读全文
posted @ 2023-03-02 22:26 听着DJ读童话 阅读(18) 评论(0) 推荐(0)