package util;import java.sql.*;/** * JDBC的工具类
*/final public class JdbcUtil { private static String user = "root"; // 数据库用户名
private static S...
分类:
数据库 时间:
2014-05-26 20:07:56
阅读次数:
355
线程同步:用来协调多个线程访问同一资源 /* * 线程同步的例子 * */public class
Test { public static void main(String[] args) { //创建两个线程并执行同一条语句 Run r=new
Run(); Thread t1=new Thre...
分类:
编程语言 时间:
2014-05-26 20:05:26
阅读次数:
358
ngx-modules
Nginx 主要的模块大致可以分为四类:
handler – 协同完成客户端请求的处理、产生响应数据。比如模块, ngx_http_rewrite_module,
ngx_http_log_module, ngx_http_static_module。
filter – 对 handler 产生的响应数据做各种过滤处理。比如模块, ngx_http_n...
分类:
其他好文 时间:
2014-05-25 23:14:00
阅读次数:
242
/// /// 文本长度判断 /// public static bool
TextLength(int min, int max, string s) { if (s.Length max) { return false; }
else { return true; } } /// ///...
分类:
Web程序 时间:
2014-05-25 23:09:29
阅读次数:
349
java中的length属性是针对数组的java中的length()方法是针对字符串String的java中的size()方法是针对泛型集合的public
static void main(String[] args) throws IOException { String []list={"it....
分类:
编程语言 时间:
2014-05-25 22:46:34
阅读次数:
236
1 import javax.swing.JFrame; 2 import
javax.swing.JOptionPane; 3 4 public class Ch2Sample1 { 5 6 public static void
main(String[] args) { 7...
分类:
其他好文 时间:
2014-05-25 22:44:19
阅读次数:
597
有些时候我们需要在中途强制跳出递归,而且还是需要一步跳出,而不一层一层的跳出,这时,我们可以采用抛异常的方法来实现。
class Test {
static class StopMsgException extends RuntimeException {
}
public static void main(String args[]) {
try {
...
分类:
编程语言 时间:
2014-05-25 22:30:53
阅读次数:
580
using System.Windows;using
System.Windows.Input;namespace TestLauncher.Tools{ internal class DragDropHelper
{ public static readonly DependencyPr...
分类:
其他好文 时间:
2014-05-25 22:05:48
阅读次数:
515
代码记录(备查):/** * 把一个文件中的内容以字符串的形式读出来 * * @author
zhipengs * */public class FileToString { public static void main(String[] args)
{ System.ou...
分类:
编程语言 时间:
2014-05-25 20:15:13
阅读次数:
363
package chapter1;public class Demo1 { public
static void main(String[] args) { System.out.println("Hello World!"); /*...
分类:
编程语言 时间:
2014-05-25 13:56:17
阅读次数:
229