话不多话都在注释上
public class OperatorIndex {
public static final String INDEX_PATH = "D:/indexDir";
// 创建分词器
private Analyzer analyzer = null;
// 索引保存目录
private File indexFile = null;
// 目录对象...
分类:
Web程序 时间:
2014-12-17 14:39:43
阅读次数:
272
setAttribute(String name,Object):设置名字为name的request的参数值
getAttribute(String name):返回由name指定的属性值
getAttributeNames():返回request对象所有属性的名字集合,结果是一个枚举的实例
getCookies():返回客户端的所有Cookie对象,结果是一个Cookie数组
getCh...
分类:
其他好文 时间:
2014-12-17 14:37:30
阅读次数:
171
Mybatis增删改查在写这个查所有的用户的时候,JavaBean必须得写一个无参数的构造方法,不然查询所有的用户的时候会出现错误。package demo2;public class User { private int id; private String name; priv...
分类:
其他好文 时间:
2014-12-17 14:32:28
阅读次数:
194
1.//判断奇偶数public static boolean isOdd(int i){ return i % 2 != 0; }2.//减法精确public static BigDecimal jian(String s1,String s2){ BigDecimal jian=new BigDe...
分类:
编程语言 时间:
2014-12-17 14:31:56
阅读次数:
225
public string Wxzhifurefund(string orderid,string openid,string weiId,string refund_fee) { Wxrefund refund = new Wxrefund(); ...
分类:
微信 时间:
2014-12-17 14:24:07
阅读次数:
363
package com.test;public class TestTwo { //测试用例 public static void main(String args[]){ int[] array=new int[]{1,2,5,9,0,4,3};//定义一个数组 Rank(array, 0...
分类:
编程语言 时间:
2014-12-17 14:20:16
阅读次数:
236
//使用java操作oracle数据库的例子//文件名:testora.javaimport java.sql.*;public class testora { public static void main(String args[]) { try { Class.forName("sun.jdb...
分类:
数据库 时间:
2014-12-17 14:18:25
阅读次数:
191
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating,...
分类:
其他好文 时间:
2014-12-17 14:17:32
阅读次数:
193
//文件名:hello.javaimport java.sql.*;public class hello { public static void main(String[] args) { // 驱动程序名 String driver = "com.mysql.jdbc.Driver"; // U...
分类:
数据库 时间:
2014-12-17 14:17:00
阅读次数:
278
/** * 将byte数组转换为表示16进制值的字符串, 如:byte[]{8,18}转换为:0813, 和public static byte[] * hexStr2ByteArr(String strIn) 互为可逆的转换过程 * * @param arrB ...
分类:
编程语言 时间:
2014-12-17 14:15:32
阅读次数:
189