package com.bjsxt.others.que; import java.util.ArrayDeque;
import java.util.Queue; /** * 使用队列模拟银行存款业务 * @author Administrator * */
public class Demo01...
分类:
其他好文 时间:
2014-10-02 01:57:32
阅读次数:
232
冒泡 package com.bjsxt.sort.bubble; import java.util.Arrays; public class BubbleSort1 { /** * @param args */ public static void main(String[] args) { in...
分类:
其他好文 时间:
2014-10-01 20:54:42
阅读次数:
254
import java.io.*;import java.util.Scanner;public class C {public static void main(String []args) throws IOException{ String x1,x2; int sum=0; ...
分类:
其他好文 时间:
2014-10-01 20:18:11
阅读次数:
290
读写函数分别例如以下:import java.io.FileInputStream;import java.io.FileOutputStream;import java.util.Properties;public Properties loadConfig(Context context, St...
分类:
移动开发 时间:
2014-10-01 13:37:41
阅读次数:
149
1、准备编译环境 yum -y install gcc make cmake autoconf libtool libevent 安装apache必须的依赖包 yum -y install apr-util apr pcrepcre-devel2、下载软件包 wget http://mirr...
分类:
其他好文 时间:
2014-09-30 20:30:40
阅读次数:
179
//附上jsp转换成servlet后的java代码
package?org.apache.jsp;
import?javax.servlet.*;
import?javax.servlet.http.*;
import?javax.servlet.jsp.*;
import?java.util.*;
public?final?class?index_j...
分类:
Web程序 时间:
2014-09-30 18:23:50
阅读次数:
201
服务器端程序:
import java.io.*;
import java.net.*;
import java.util.*;
public class ChatServer {
boolean started = false;
ServerSocket ss = null;
List clients = new ArrayList();
public static void ma...
分类:
编程语言 时间:
2014-09-30 17:06:39
阅读次数:
274
一、安装配置Apache1.1.安装依赖包(APR,APR-UTIL,pcre)tar-zxfapr-1.4.5.tar.gz[root@apr-1.4.5]#./configure--prefix=/usr/local/apr[root@apr-1.4.5]#make[root@apr-1.4.5]#makeinstall[root@]#tar-zxfapr-util-1.3.12.tar.gz[root@apr-util-1.3.12]#./configure--prefix=/..
分类:
其他好文 时间:
2014-09-30 13:56:11
阅读次数:
140
jsp连接数据库:<%@pagelanguage="java"import="java.util.*,java.sql.*"pageEncoding="GB18030"%><%Stringusername=request.getParameter("username");Stringpassword=request.getParameter("password");Stringpassword2=request.getParameter("password2");Class.fo..
分类:
数据库 时间:
2014-09-30 04:05:02
阅读次数:
254
直接上源码: 1 package reflex; 2 3 import java.util.List; 4 5 /**利用反射实例化对象*/ 6 public class Person { 7 public Person(){ 8 System.out.println("...
分类:
其他好文 时间:
2014-09-29 20:40:11
阅读次数:
155