上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 21 下一页
摘要: JSP 日期处理 使用JSP最重要的优势之一,就是可以使用所有Java API。本章将会详细地讲述Java中的Date类,它在java.util包下,封装了当前日期和时间。 Date类有两个构造函数。第一个构造函数使用当前日期和时间来初始化对象。 Date( ) 第二个构造函数接受一个参数,这个参数 阅读全文
posted @ 2020-12-11 21:26 敲敲代代码码 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 实验16:命令模式 本次实验属于模仿型实验,通过本次实验学生将掌握以下内容: 1、理解命令模式的动机,掌握该模式的结构; 2、能够利用命令模式解决实际问题。 [实验任务一]:多次撤销和重复的命令模式 某系统需要提供一个命令集合(注:可以使用链表,栈等集合对象实现),用于存储一系列命令对象,并通过该命 阅读全文
posted @ 2020-12-08 15:27 敲敲代代码码 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 1. package first; import javax.swing.*; class AboutException{ public static void main(String[] a) { int i=1, j=0, k; //k=i/j; try { k = i/j; // Causes 阅读全文
posted @ 2020-10-31 13:45 敲敲代代码码 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1. 1 class Grandparent 2 { 3 4 5 public Grandparent() 6 { 7 8 System.out.println("GrandParent Created."); 9 10 } 11 12 13 public Grandparent(String st 阅读全文
posted @ 2020-10-21 21:25 敲敲代代码码 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 今天配置完了javaweb的环境,继续学习Javaweb 阅读全文
posted @ 2020-10-19 21:00 敲敲代代码码 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 今天安装了tomcat 准备学习javaweb 阅读全文
posted @ 2020-10-09 21:45 敲敲代代码码 阅读(66) 评论(0) 推荐(0) 编辑
摘要: (1). 原因:如果类提供了一个自定义的构造方法,将导致系统不再提供默认构造方法。 (2). 1 public class InitializeBlockClass { 2 { 3 field=200; 4 } 5 public int field=100; 6 public InitializeB 阅读全文
posted @ 2020-10-07 21:22 敲敲代代码码 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 二柱子 1 import java.util.*; 2 public class math{ 3 static int d;//出题个数 4 static int e;//操作数个数 5 static int f;//操作数取值范围 6 static int u=0;//错题个数; 7 static 阅读全文
posted @ 2020-10-05 23:58 敲敲代代码码 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 动手动脑 生成随机数 1 import java.util.*; 2 public class random{ 3 public static void main(String[] args) { 4 int m; 5 System.out.print("请输入生成随机数的个数:"); 6 Scan 阅读全文
posted @ 2020-10-04 21:35 敲敲代代码码 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 输入验证码 1 import javax.swing.Box; 2 import javax.swing.JLabel; 3 import javax.swing.JOptionPane; 4 import javax.swing.JPanel; 5 import javax.swing.JText 阅读全文
posted @ 2020-10-04 21:00 敲敲代代码码 阅读(138) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 21 下一页