- 浏览: 37413 次
- 性别:
最新评论
文章列表
//主类
package Java.se.lucene;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import ...
- 2012-09-12 15:12
- 浏览 245
- 评论(0)
package Java.se.lucene;
//主类
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.inde ...
- 2012-09-11 22:38
- 浏览 262
- 评论(0)
//主类
package org.se.lucene;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.CorruptIndexExcepti ...
- 2012-09-11 15:45
- 浏览 348
- 评论(0)
package org.se.lucene;
//主类
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.CorruptIndexExcept ...
- 2012-09-10 22:56
- 浏览 327
- 评论(0)
//主程序
package org.se.lucene;
import java.io.File;
import java.io.IOException;
//import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.docu ...
- 2012-09-08 23:00
- 浏览 321
- 评论(0)
package org.se.lucene;
//主类
import java.io.File;
import java.io.IOException;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.CorruptIndexException;
import org.apache.lucen ...
- 2012-09-08 12:00
- 浏览 294
- 评论(0)
package org.se.lucene;
//创建索引
import java.io.File;
import java.io.IOException;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.CorruptIndexException;
import org.apache.luc ...
- 2012-09-07 21:53
- 浏览 285
- 评论(0)
文件放在F:/lucene/lucenes
package org.lucene;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.Corr ...
- 2012-09-07 08:23
- 浏览 253
- 评论(0)
第一种是以毫秒为单位计算的。
Java代码
//伪代码
long startTime=System.currentTimeMillis(); //获取开始时间
doSomeThing(); //测试的代码段
long endTime=System.currentTimeMillis(); //获取结束时间
System.out.println("程序运行时间: "+(end-start)+"ms");
//伪代码
long startTime=System.currentTimeMillis(); // ...
- 2012-09-02 12:05
- 浏览 329
- 评论(0)
先举个简单的例子说明问题所在,例如在Eclipse ,MyEclipse代码里面,打个foreach,switch等这些,是无法得到代码提示的(不信自己试试),其他的就更不用说了,而在Microsoft Visual Studio 里面是得到非常友好的代码提示的。实际上,Eclipse ,MyEclipse代码里面的代码提示功能默认的一般是点“.”,一般是有了点“.”,才会有代码提示。
原理:“Auto Activation triggers for java”这个选项就是指触发代码提示的的选项,把“.”改成“.abcdefghijklmnopqrstuvwxyz(,”的意思,就 ...
- 2012-09-02 00:06
- 浏览 288
- 评论(0)
类一
数组合并,但是数组又不能越界,为了节省内存,新建一数组用来合并数组,然后再赋值给要合并的数组
package org.se;
//线性表合并
public class arithMetic11 {public static int[] la={1,5,4};//用数组代替线性表public static int[] lb={4,6,45,56 ...
- 2012-09-01 16:09
- 浏览 334
- 评论(0)
<html>
<head>
<title>大清帝国</title>
<meta name="keywords" content="大清帝国之康熙大帝">
<meta name="description" content="大清帝国之康熙大帝">
<meta name="description" content="大清帝国之康熙大帝">
<meta http ...
- 2012-08-19 13:10
- 浏览 401
- 评论(0)
由于开发需要,下了SUN出的最新的Java ME platform SDK 3.0,但是跟eclipseme 1.7.9 配合有问题,在RUN的时候,会报下面错误:
Syntax:
emulator [arguments]
In order to get commands supported by given device run:
emulator.exe -Xdevice: -Xquery
Generic list of arguments is:
-version Display version information about the emulator
- ...
- 2012-05-27 00:19
- 浏览 284
- 评论(0)
package Mypaint;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDletStateChangeException;
public class mypaint extends MIDlet {
private Display d;
private mycanvas mc;public mypaint() {d = Display.getDisplay(this);mc = new mycanvas( ...
- 2012-05-26 12:56
- 浏览 266
- 评论(0)
#include <windows.h>
#include "StdAfx.h"
#include <stdio.h>
TCHAR szTitle[32]=TEXT("迷宫"); //窗口的标题
TCHAR szWindowClass[32]=TEXT("Simple"); //窗口的名称
HINSTANCE hInst;
HDC hdc,mdc;
HBITMAP wall = (HBITMAP)LoadImage(NULL,TEXT("res/wall.bmp"),IMAGE_ ...
- 2012-05-20 20:28
- 浏览 276
- 评论(0)