Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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

 ¹ØÓÚjavaƽ̨£¬¿ª·¢»·¾³£¬¿ª·¢¹¤¾ßµÄÈÏʶ
       Ò»¿ªÊ¼Ñ§¾­³£°ÑÈýÕ߸ø»ìÁË¡£Æ½Ì¨ÊÇÒ»¸ö³ÌÐòÔËÐеÄÓ²¼þ»·¾³¡£Ïñwidows£¬linuxµÈÊDzÙ×÷ϵͳºÍÓ²¼þ×é³ÉµÄ»ùÓÚÓ²¼þµÄƽ̨¡£javaƽ̨һ¸öÔËÐÐÔÚÓ²¼þÖ®ÉϵĴ¿Èí¼þƽ̨¡£javaƽ̨ÓÐÁ½²¿·Ö×é³ÉjavaÐéÄâ»úºÍjava³ÌÐòÉè¼Æ½Ó¿Ú¡£
  &n ......

·ÖÏíJavaÃæÊÔÖÐÓöµ½µÄһЩ¾­µäËã·¨ÌâÄ¿

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;
......

Ô­´´Í¼Ê顶Java»ù´¡Óë°¸ÀýÏê½â¡·

 2009Äê9Ô³ö°æµÄ¡£Í¬ÊÇ¡¶Èí¼þ¿ª·¢¿ÎÌá·ÏµÁС£±¾ÈËÔÚ±¾ÊéÖбàдµÄÕ½ÚΪ£º
µÚ12Õ£º¶àÏß³Ì
µÚ13Õ£ºIOÁ÷
µÚ15Õ£º·´Éä
µÚ16Õ£º×¢½â
µÚ19Õ£ºÍøÂç±à³Ì
µÚ20Õ£ºÏîĿʵÀýÖ®ÍøÂç°æQQ
ͼÊé·âÃ棺
¹ºÂòÁ´½Ó£ºhttp://www.china-pub.com/195979&ref=ps ......

java×Ö·û´®´¦Àí

 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Õ»Óë¶ÑµÄ˼¿¼

¹ØÓÚJavaÕ»Óë¶ÑµÄ˼¿¼
1. Õ»(stack)Óë¶Ñ(heap)¶¼ÊÇJavaÓÃÀ´ÔÚRamÖдæ·ÅÊý¾ÝµÄµØ·½¡£ÓëC++²»Í¬£¬Java×Ô¶¯¹ÜÀíÕ»ºÍ¶Ñ£¬³ÌÐòÔ±²»ÄÜÖ±½ÓµØÉèÖÃÕ»»ò¶Ñ¡£
¡¡¡¡2. Õ»µÄÓÅÊÆÊÇ£¬´æÈ¡ËٶȱȶÑÒª¿ì£¬½ö´ÎÓÚÖ±½ÓλÓÚCPUÖеļĴæÆ÷¡£µ«È±µãÊÇ£¬´æÔÚÕ»ÖеÄÊý¾Ý´óСÓëÉú´æÆÚ±ØÐëÊÇÈ·¶¨µÄ£¬È±·¦Áé»îÐÔ¡£ÁíÍ⣬ջÊý¾Ý¿ÉÒÔ¹²Ïí£¬Ïê¼ûµÚ3µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ