JAVAʵÀý½Ì³ÌÖ®5
½Ì³Ì5 ËãÊýÔËËãѧϰ³ÌÐò ѧϰĿ±ê 5.1¼òµ¥¼Ó·¨Ñ§Ï°³ÌÐò СѧÉúÔÚ¸Õ¸Õ¿ªÊ¼Ñ§Ï°ÊýѧÔËËãµÄʱºò£¬ÐèÒª²»¶ÏµØ½øÐз´¸´´óÁ¿µÄÁ·Ï°£¬²ÅÄܹ»Ñ¸ËÙÕÆÎÕÕⲿ·ÖÄÚÈÝ¡£ÏÂÃ濪·¢Ò»¸ö¼òµ¥µÄ¼Ó·¨Ñ§Ï°³ÌÐò£¬Äܹ»²úÉú¼Ó·¨ÔËËãÈÃѧÉúÀ´Ñ§Ï°Ìá¸ß¡£ ±àд³ÌÐòÈçÏ£º 1 package lesson5; 2 3 public class Operation1 { 4 int number1; 5 int number2; 6 void operate(int number1,int number2) 7 { 8 this.number1=number1; 9 this.number2=number2; 10 System.out.println(number1+"+"+number2+"="); 11 } 12 void showTitle() 13 { 14 System.out.println("Çë¼ÆËãÈçÏÂÔËËã½á¹û£º"); 15 } 16 public static void main(String args[]) 17 { 18 Operation1 o1=new Operation1(); 19 o1.showTitle(); 20 o1.operate(1,2); 21 } 22 } ±¾³ÌÐòÖУ¬¶¨ÒåÁËÒ»¸öOperation1Àà¡£ÀàÖж¨ÒåÁËÁ½¸öintÀàÐ͵ıäÁ¿number1ºÍnumber2£¬·Ö±ðÓÃÀ´´æ´¢²ÎÓëÔËËãµÄÁ½¸öÊý×Ö¡£µÚ6¡«11Ðж¨ÒåÁËÒ»¸öoperateº¯ÊýÓÃÀ´²úÉúÒ»¸ö¼Ó·¨ÔËËã¡£·½·¨ÌåÄÚ£¬µÚ8¡¢9ÐÐÊ×ÏÈÓ¦Ó÷½·¨µÄ²ÎÊý¶Ôµ±Ç°¶ÔÏóµÄnumber1ºÍnumber2½øÐи³Öµ£¬µÚ11ÐÐÍê³ÉÁËÔËËãʽµÄÊä³ö¡£µÚ12¡«15Ðж¨ÒåÁË·½·¨showTitle£¬·½·¨ÌåÄÚµÄ14ÐдòÓ¡Á˼ӷ¨ÔËËãµÄÌáʾÐÅÏ¢¡£µÚ16¡«22ÐÐÊÇmainº¯Êý£¬º¯ÊýÌåÄÚµÚ18ÐÐÊ×Ïȶ¨ÒåÁËÒ»¸ö¶ÔÏóo1£¬½ÓÏÂÀ´µÚ19Ðе÷ÓÃÁËshowTitle·½·¨£¬×îºóo1µ÷ÓÃÁËoperate·½·¨¡£ ±àÒë¡¢ÔËÐгÌÐò£¬½«µÃµ½ÈçϽá¹û£º Çë¼ÆËãÈçÏÂÔËËã½á¹û£º 1+2= 5.2 ÒýÈëËæ»úÊýµÄ¼Ó·¨Ñ§Ï°³ÌÐò ÉÏÊö³ÌÐòÔÚʹÓÃÖÐÈç¹ûÐèÒª²úÉú¼Ó·¨Ëãʽ£¬ÐèÒªÊÂÏÈÈ·¶¨Á½¸ö¼ÓÊý£¬ÕâÑù²Ù×÷ÆðÀ´Ïà¶Ô±È½ÏÂé·³£¬¶øÔÚʵ¼ÊʹÓÃÖÐͨ³£Ï£ÍûÄܹ»×Ô¶¯²úÉúÁ½¸ö¼ÓÊý¡£ Èç¹ûÏ£Íû×Ô¶¯²úÉú¼ÓÊý£¬¾ÍÒªÓõ½Ëæ»úÊý¡£ ÔÚJavaÓïÑÔÖÐÀàRandomÓÃÀ´²úÉúËæ»úÊý¡£Òò´Ë£¬¿ÉÒÔÏÈÓÃÀàRandomÉú²úÒ»¸ö¶ÔÏó£¬ÔÙͨ¹ýÕâ¸ö¶ÔÏóÉú³ÉËæ»úÊý¡£RandomÔÚJavaÖÐÍê³ÉµÄ·¾¶ÊÇjava.util.Random£¬Òò´ËRandom¶ÔÏóÉú³É·½Ê½Îª£º java.util.Random ¶ÔÏóÃû=new java.util.Random(); ¿ÉÒÔ¿´µ½Èç¹ûÕâÑù¶¨Òå±È½ÏÂé·³£¬Òò´ËÒýÈëimportÓï¾ä¡£ÔÚ³ÌÐòµÄ¿ªÊ¼²¿·ÖÓ¦ÓÃimportÒýÈëjava.util.Random£¬ÕâÑùÿ´ÎÓõ½RandomµÄʱºò£¬¾Í¿ÉÒÔÖ±½ÓʹÓÃÁË¡£ÀýÈ磺 Random ¶ÔÏóÃû= Random(); ÔÚRandomµÄ·½·¨ÀïÃæ¾³£Óõ½ÊÇnextInt(int n)·½·¨¡£¸Ã·½·¨·µ»ØÒ»¸öαËæ»úÊý£¬ËüÊÇ´Ó´ËËæ»úÊýÉú³ÉÆ÷µÄÐòÁÐÖÐÈ¡³öµÄÔÚ 0£¨°üÀ¨£©ºÍÖ¸¶¨Öµ£¨²»°üÀ¨£©Ö®¼ä¾ùÔÈ·Ö²¼µÄ intÖµ¡£ Ð޸ijÌÐòÈçÏ£º 1 package lesson5; 2 import
Ïà¹ØÎĵµ£º
The Mean Opinion
Score (MOS) test is a well acccepted standard which is defined in the ITU-T
Rec.P.800.
The value of MOS
test is generated by letting large number of listeners to evaluate the quality
of the test sentences.
The test scores
are averaged to a mean score which range fro ......
1:Ó¦ÓóÌÐò²»ÔÙÐèҪʹÓà Class.forName() ÏÔʽµØ¼ÓÔØ JDBC Çý¶¯³ÌÐò¡£µ±Ç°Ê¹Óà Class.forName() ¼ÓÔØ JDBC Çý¶¯³ÌÐòµÄÏÖÓгÌÐò½«ÔÚ²»×÷Ð޸ĵÄÇé¿öϼÌÐø¹¤×÷¡£
2:ÐèҪעÒâÒÔÏÂÃüÁ
executeUpdate£ºÊÇ×î»ù´¡µÄÊý¾Ý¿âµÄ¸üС¢²åÈëºÍɾ³ý²Ù×÷¡£Ð§ÂʵÍÏ¡£
executeQuery£ºÊÇ×î»ù´¡µÄÖ´ÐвéѯÓï¾ä£¬Í¬Ñù ......
JavaÖеÄ×Ö·û¼¯±àÂëÈëÃÅ
ASCII¼°Ïà¹Ø±ê×¼
¡¡¡¡µØÇòÈ˶¼ÖªµÀASCII¾ÍÊÇÃÀ¹ú±ê×¼ÐÅÏ¢½»»»ÂëµÄËõд£¬Ò²ÖªµÀASCII¹æ¶¨ÓÃ7λ¶þ½øÖÆÊý×ÖÀ´±íʾӢÎÄ×Ö·û£¬ASCII±»¶¨Îª¹ú¼Ê±ê×¼Ö®ºóµÄ ´úºÅΪISO-646.ÓÉÓÚASCIIÂëֻʹÓÃÁË7¸ö¶þ½øÖÆ룬Ҳ¾ÍÊÇ˵һ¸ö×Ö½Ú¿ÉÒÔ±íʾµÄ256¸öÊý×ÖÖУ¬Ëü½öʹÓÃÁË0-127Õâ128¸öÂëλ£¬Ê£Ï嵀 ......
java·ºÐÍÖеÄsuper¹Ø¼ü×Ö²»Ì«³£Óã¬Ò²²»Ì«ºÃÀí½â£¬½ñÌìÓÖ´ÓÍ·¿´ÁË¿´javaµÄ·ºÐÍ»úÖÆ£¬×÷Ò»¼Ç¼¡£
ÉϽç:
ÉϽçÓÃextends¹Ø¼ü×ÖÉùÃ÷£¬±íʾ²ÎÊý»¯µÄÀàÐÍ¿ÉÄÜÊÇËùÖ¸¶¨µÄÀàÐÍ£¬»òÕßÊÇ´ËÀàÐ͵Ä×ÓÀà¡£ÈçÏÂÃæµÄ´úÂ룺
Java´úÂë
public void upperBound(List<? extends Date> list, Date& ......
Ò»¡¢final
¸ù¾Ý³ÌÐòÉÏÏÂÎÄ»·¾³£¬Java¹Ø¼ü×ÖfinalÓГÕâÊÇÎÞ·¨¸Ä±äµÄ”»òÕß“ÖÕ̬µÄ”º¬Ò壬Ëü¿ÉÒÔÐÞÊηdzéÏóÀà¡¢·Ç³éÏóÀà³ÉÔ±·½·¨ºÍ±äÁ¿¡£Äã¿ÉÄܳöÓÚÁ½ÖÖÀí½â¶øÐèÒª×èÖ¹¸Ä±ä£ºÉè¼Æ»òЧÂÊ¡£
finalÀ಻Äܱ»¼Ì³Ð£ ......