Java ¶ÁÈ¡Îı¾Îļþ
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
/**
* @author new
*
*/
public class ReadDataTest
{
/**
* @param args
*/
String url="D:/java.txt";
String str="";
char[] ch=new char[1024];
StringBuffer sb=new StringBuffer();
public String ReadData()
{
try
{
FileReader fr=new FileReader(new File(url));
int d = fr.read(ch);
while(d!=-1)
{
String s=new String(ch,0,d);
sb.append(s);
d = fr.read(ch);
}
str=sb.toString();
}
catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
return str;
}
public static void main(String[] args)
{
ReadDataTest at=new ReadDataTest();
String ss=at.ReadData();
System.out.println(ss);
}
}
Ïà¹ØÎĵµ£º
Ò»£º×¼±¸ www.savarese.org download
1. rocksaw-1.0.0-src.tar.gz
2. vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
1. build vserv-tcpip-0.9.2-src
ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃæ½¨Ò»¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......
ÀàµÄ³õʼ»¯ºÍ¶ÔÏó³õʼ»¯ÊÇ JVM ¹ÜÀíµÄÀàÐÍÉúÃüÖÜÆÚÖзdz£ÖØÒªµÄÁ½¸ö»·½Ú£¬Google ÁËÒ»±éÍøÂ磬ÓйØÀà×°ÔØ»úÖÆµÄÎÄÕµ¹ÊDz»ÉÙ£¬È»¶øÀà³õʼ»¯ºÍ¶ÔÏó³õʼ»¯µÄÎÄÕ²¢²»¶à£¬ÌرðÊÇ´Ó×Ö½ÚÂëºÍ JVM ²ã´ÎÀ´·ÖÎöµÄÎÄÕ¸üÊÇÏÊÓÐËù¼û¡£
±¾ÎÄÖ÷Òª¶ÔÀàºÍ¶ÔÏó³õʼ»¯È«¹ý³Ì½øÐзÖÎö£¬Í¨¹ýÒ»¸öʵ¼ÊÎÊÌâÒýÈ룬½«Ô´´úÂëת»»³É JVM ×Ö½ÚÂëºó£¬ ......
1¡¢×÷ÓÃÓòpublic,private,protected,ÒÔ¼°²»Ð´Ê±µÄÇø±ð
´ð£ºÇø±ðÈçÏ£º
×÷ÓÃÓò µ±Ç°Àà ͬһpackage ×ÓËïÀà ÆäËûpackage
public ......
Õý³£±àÒëÔËÐÐjavaÎļþ¿Ï¶¨Òª±¾µØÏÂÔØjdkºÍjre»òÕßʹÓü¯³ÉIDE(Eclipse,NetBeans)£¬Õâ¸öÍøÕ¾¸É´à½«±àÒ빤×÷·Åµ½·þÎñÆ÷ÉÏÈ¥£¬ÈÃÄã¿ÉÒÔÔÚÏß±àÒ룬
µÃ³ö´íÎóÐÅÏ¢£¬¸üÄѵõÄÊÇ»¹¿ÉÔËÐУ¬µ±È»²»ÄÜ×öͼÐκÍÎļþ²Ù×÷£¬ÒòΪËüÔËÐÐÔÚ·þÎñÆ÷¶Ë¡£
꿅᣼http://youjavait.com/
Ò³ÃæÉÏ·ÖΪÉÏÏÂÁ½¸öÃæ°å£¬ÓеãÀàËÆEclipse¡£±àÒëÊ ......