摘要:
abstract 关键字不能用来修饰变量和构造方法,即没有抽象变量和抽象构造方法的说法 。abstract关修饰的的方法只有被子类重写才有意义。否则这个方法永远没有方法体,因此抽象方法不能被定义为private,即private 和abstract不能同时修饰方法,avstract也不能和stati 阅读全文
摘要:
验证密码 规则: 长度:6-10 大写字母,小写字母,数字至少各出现一次。 正则: /d+ 数字至少一次 [a-z]+ 小写字母至少一次 [A-Z]+ 大写字母至少一次 (.*)? .代表通配符 * 代表出现0次或多次, ? 代表有或者无 阅读全文
摘要:
User.hbm.xml 阅读全文
摘要:
实体类:一个带参数的构造方法,一个不带参数的构造方法。 注意工程的目录结构以及 user.hbm.xml 文件中,<class name = "entity.Users"> 写上包名。 schemaExport 生成表结构: 阅读全文
摘要:
1 package com.imooc.db; 2 3 4 import java.sql.Connection; 5 import java.sql.DriverManager; 6 import java.sql.ResultSet; 7 import java.sql.SQLException; 8 import java.sql.Statement; 9... 阅读全文
摘要:
HTTP Status 404 - There is no Action mapped for namespace [/] and action nam struts.xml 文件一定要放到src 目录下面。 struts.xml 注意: web.xml 校验器代码: User.hbm.xml Hi 阅读全文
摘要:
#include #include #include #include #include using namespace std; int Next[1005]={-1}; char a[1005],b[1005]; int m,n,cnt; void getNext() { int t=-1; int j=0; while(j<m-1) { ... 阅读全文
摘要:
include include include using namespace std; const int maxNode = 50005; struct Node{ int left; int right; int value; }node[maxNode 4]; int father[maxN 阅读全文
摘要:
![](http://images2015.cnblogs.com/blog/790710/201604/790710-20160425234201095-412190183.jpg) 阅读全文
摘要:
include include include include using namespace std; const int MaxNode=524288; const int MaxStu=200001; struct Node{ int value; int left,right; }node[ 阅读全文