JAVA¶ÁÈ¡Îļþ£¬±ÜÃâÖÐÎÄÂÒÂë¡£
1¡¢JAVA¶ÁÈ¡Îļþ£¬±ÜÃâÖÐÎÄÂÒÂë¡£
/**
* ¶ÁÈ¡ÎļþÄÚÈÝ
*
* @param filePathAndName
* String Èç c:\\1.txt ¾ø¶Ô·¾¶
* @return boolean
*/
public static String readFile(String filePathAndName) {
String fileContent = "";
try {
File f = new File(filePathAndName);
if(f.isFile()&&f.exists()){
InputStreamReader read = new InputStreamReader(new FileInputStream(f),"UTF-8");
BufferedRead
Ïà¹ØÎĵµ£º
¹ØÓÚjavaƽ̨£¬¿ª·¢»·¾³£¬¿ª·¢¹¤¾ßµÄÈÏʶ
Ò»¿ªÊ¼Ñ§¾³£°ÑÈýÕ߸ø»ìÁË¡£Æ½Ì¨ÊÇÒ»¸ö³ÌÐòÔËÐеÄÓ²¼þ»·¾³¡£Ïñwidows£¬linuxµÈÊDzÙ×÷ϵͳºÍÓ²¼þ×é³ÉµÄ»ùÓÚÓ²¼þµÄƽ̨¡£javaƽ̨һ¸öÔËÐÐÔÚÓ²¼þÖ®ÉϵĴ¿Èí¼þƽ̨¡£javaƽ̨ÓÐÁ½²¿·Ö×é³ÉjavaÐéÄâ»úºÍjava³ÌÐòÉè¼Æ½Ó¿Ú¡£
&n ......
1.дһ¸ö·½·¨£¬ÓÃÒ»¸öforÑ»·´òÓ¡¾Å¾Å³Ë·¨±í
/**
* ´òÓ¡¾Å¾Å³Ë·¨¿Ú¾÷±í
*/
public void nineNineMulitTable(){
for (int i = 1,j = 1; j <= 9; i++) {
System.out.print(i+"*"+j+"="+i*j+" ");
if(i==j){
i=0;
......
2009Äê9Ô³ö°æµÄ¡£Í¬ÊÇ¡¶Èí¼þ¿ª·¢¿ÎÌá·ÏµÁС£±¾ÈËÔÚ±¾ÊéÖбàдµÄÕ½ÚΪ£º
µÚ12Õ£º¶àÏß³Ì
µÚ13Õ£ºIOÁ÷
µÚ15Õ£º·´Éä
µÚ16Õ£º×¢½â
µÚ19Õ£ºÍøÂç±à³Ì
µÚ20Õ£ºÏîĿʵÀýÖ®ÍøÂç°æQQ
ͼÊé·âÃ棺
¹ºÂòÁ´½Ó£ºhttp://www.china-pub.com/195979&ref=ps ......
1¡¢length() ×Ö·û´®µÄ³¤¶È
¡¡¡¡Àý£ºchar chars[]={'a','b'.'c'};
¡¡¡¡¡¡¡¡String s=new String(chars);
¡¡¡¡¡¡¡¡int len=s.length();
2¡¢charAt() ½ØÈ¡Ò»¸ö×Ö·û
¡¡¡¡Àý£ºchar ch;
¡¡¡¡¡¡¡¡ch="abc".charAt(1); ·µ»Ø'b'
3¡¢getChars() ½ØÈ¡¶à¸ö×Ö·û
¡¡¡¡void getChars(int sourceStart,int sourceEnd,char tar ......
¹ØÓÚJavaÕ»Óë¶ÑµÄ˼¿¼
1. Õ»(stack)Óë¶Ñ(heap)¶¼ÊÇJavaÓÃÀ´ÔÚRamÖдæ·ÅÊý¾ÝµÄµØ·½¡£ÓëC++²»Í¬£¬Java×Ô¶¯¹ÜÀíÕ»ºÍ¶Ñ£¬³ÌÐòÔ±²»ÄÜÖ±½ÓµØÉèÖÃÕ»»ò¶Ñ¡£
¡¡¡¡2. Õ»µÄÓÅÊÆÊÇ£¬´æÈ¡ËٶȱȶÑÒª¿ì£¬½ö´ÎÓÚÖ±½ÓλÓÚCPUÖеļĴæÆ÷¡£µ«È±µãÊÇ£¬´æÔÚÕ»ÖеÄÊý¾Ý´óСÓëÉú´æÆÚ±ØÐëÊÇÈ·¶¨µÄ£¬È±·¦Áé»îÐÔ¡£ÁíÍ⣬ջÊý¾Ý¿ÉÒÔ¹²Ïí£¬Ïê¼ûµÚ3µ ......