- 浏览: 24052 次
- 性别:
- 来自: 北京
文章列表
public class ConverseString {
public static String toUTF8(String inPara) {
char temChr;
int ascChr;
int i;
StringBuffer rtStr = new StringBuffer("");
if (inPara == null) {
inPara = "";
}
for (i = 0; i < inPara.length(); i++) {
temChr = inP ...
<%@page contentType="text/xml;charset=UTF-8"%>
<%@ page import="java.util.HashMap,java.text.ParseException,tools.*"%>
<%@page import="java.sql.Connection,java.sql.DriverManager,java.sql.PreparedStatement,java.sql.ResultSet,java.sql.SQLException"%>
...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8&quo ...
<%@ page import="java.text.DateFormat,java.text.ParseException,java.text.SimpleDateFormat,tools.*"%>
<%@page import="java.sql.Connection,java.sql.DriverManager,java.sql.PreparedStatement,java.sql.ResultSet,java.sql.SQLException,java.util.ArrayList,java.util.Date"%> ...
<script type="text/javascript">
var gMonths=new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");
var WeekDay=new Array("日","一 ...
SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd");
Date date1 = null;
Date date2 = null;
long l = 0l;
String k = "";
ArrayList dlist = new ArrayList();
try {
date1 = new SimpleDateFormat("yyyyMMdd").parse("20100929");
date ...
package com.supben.util;
import net.sourceforge.pinyin4j.PinyinHelper;
import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType;
import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;
import net.sourceforge.pinyin4j.format.HanyuPinyinToneType;
import net.sourceforge.pinyin4j.forma ...
var xmlHttp;
var state;
function createXMLHttpRequest() {
if(window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
} else if(window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
return xmlHttp;
}
function $(id){
return document.g ...
Map虽然实现了Collection接口,但是并不能直接遍历。如果想遍历Map,需要使用entrySet
view plaincopy to clipboardprint?
/**
*Entry: java.util.Entry
*hashmap类型为HashMap
*/
for(Iterator iter=hashmap.entrySet().iterator(); iter.hasNext();){
Entry entry = (Entry)iter.next();
entry.getKey(); //返回与此项对应 ...
System.out.println("request: "+request);
System.out.println("getInputStream: "+request.getInputStream());
System.out.println("getParameterNames: "+request.getParameterNames());
BufferedReader br = new BufferedReader(new InputStreamReader((ServletInputStream)reques ...
CLASSPATH
.;%JAVA_HOME%\dt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\jxl.jar;%JAVA_HOME%\lib\jxl-2.6.jar;%JAVA_HOME%\lib\poi-final.jar;%JAVA_HOME%\lib\poi-contrib.jar;%JAVA_HOME%\lib\poi-scratchpad.jar;%JAVA_HOME%\lib\poi.jar;%JAVA_HOME%\lib\poi-ooxml-schemas.jar;%JAVA_HOME%\lib\poi-ooxml.jar; ...
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: StringBinaryConvertor.java
import java.io.*;
public class StringBinaryConvertor extends Th ...
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class BinaryStringConvertor extends Thread {
public void run() {
int i = 1;
while (true) {
rundo(i);
i++;
try {
Thread.sleep(2000);
} catch (Exception e) {
} ...
package test.http01;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class IdCard extends Thread {
public void run() {
int i = 1;
while (true) {
rundo(i);
i++;
try {
Thread.sleep(2000);
} catch (Exception e) ...
public static ArrayList sort_n(ArrayList al,String path){
ArrayList l_n = new ArrayList();
ArrayList l_c = new ArrayList();
ArrayList l_end = new ArrayList();
for (int i = 0; i < al.size(); i++) {
if (isNumeric_reg((String) al.get(i))) {
l_n.add(al.get(i));
} else {
...