Java´Ó¿ØÖÆ̨ÖжÁÈ¡Êý¾ÝÍêÈ«¹¥ÂÔ
0¡¡ÒýÑÔ
´Ó¿ØÖÆ̨ÖжÁÈ¡Êý¾ÝÊÇÒ»¸ö±È½Ï³£ÓõŦÄÜ£¬ÔÚ JDK 5.0 ÒÔÇ°µÄ°æ±¾ÖеÄʵÏÖÊDZȽϸ´Ôӵģ¬ÐèÒªÊÖ¹¤´¦ÀíϵͳµÄÊäÈëÁ÷¡£ÓÐÒâ˼µÄÊÇ£¬´Ó JDK 5.0 °æ±¾¿ªÊ¼£¬ÄÜ´Ó¿ØÖÆ̨ÖÐÊäÈëÊý¾ÝµÄ·½·¨Ã¿Ôö¼ÓÒ»¸ö°æ±¾ºÅ£¬¾ÍÓÐÒ»ÖÖÐÂÔöµÄ·½·¨£¬ÕâÒ²Ôö¼ÓÁËÑ¡ÔñµÄÖÖÀ࣬¿ÉÒÔÒÀ¾Ý²»Í¬µÄÒªÇóÀ´½øÐÐÑ¡Ôñ¡£ÏÂÃæÀ´¿´Ò»Ï£¬¸÷¸ö°æ±¾ÖÐÈçºÎ´Ó¿ØÖÆ̨ÖжÁÈ¡Êý¾ÝÒÔ¼°¸÷×ÔµÄÓÅȱµã¡£
1¡¡JDK 1.4 ¼°ÒÔÏ°汾¶ÁÈ¡µÄ·½·¨
JDK 1.4 ¼°ÒÔϵİ汾ÖÐÒªÏë´Ó¿ØÖÆ̨ÖÐÊäÈëÊý¾ÝÖ»ÓÐÒ»ÖÖ°ì·¨£¬¼´Ê¹ÓÃSystem.in»ñµÃϵͳµÄÊäÈëÁ÷£¬ÔÙÇŽÓÖÁ×Ö·ûÁ÷´Ó×Ö·ûÁ÷ÖжÁÈëÊý¾Ý¡£Ê¾Àý´úÂëÈçÏ£º
import java.io.IOException;
import java.io.InputStreamReader;
public class Test1 {
public static void main(String[] args) {
String str = readString("ÇëÊäÈë×Ö·û´®£º");
System.out.println("readString ·½·¨µÄÊäÈ룺" + str);
}
/**
* ʹÓÃϵͳµÄÊäÈëÁ÷£¬´Ó¿ØÖÆ̨ÖжÁÈ¡Êý¾Ý<br/>
* ÓÃÓÚËùÓõÄJDK°æ±¾
* @param prompt ÌáʾÐÅÏ¢
* @return ÊäÈëµÄ×Ö·û´®
*/
private static String readString(String prompt) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
try {
System.out.print(prompt);
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
´ÓÉÏÃæµÄ´úÂë¶ÎÀ´¿´£¬ÕâÖÖ¿ØÖÆ̨ÊäÈëµÄ·½·¨·Ç³£µØÂé·³£¬ÎªÁËÄܶÁÈ¡ÕûÐеÄÊý¾Ý£¬²ÉÓÃÁËBufferedReaderÀ
Ïà¹ØÎĵµ£º
Java±à³ÌÄÇЩʶù78——ʱ¼äºÍÈÕÆÚ´¦Àí
9.6 java.util°ü
java.util°üÊÇJavaÓïÑÔÌṩµÄ¹¤¾ßÀà°ü£¬¸Ã°üÖаüº¬ÁËÈçÈÕÆÚ¡¢Ëæ»úÊýºÍÊý¾Ý½á¹¹ÊµÏÖÀàµÈһϵÁеŤ¾ßÀàʵÏÖ£¬ÊÇѧϰJavaÓïÑԵĻù´¡°üÖ®Ò»¡£
9.6.1 ʱ¼äºÍÈÕÆÚ´¦Àí
ʹÓóÌÐò½øÐÐʱ¼äº ......
ÓÉÓÚ¹¤×÷ÐèÒª£¬ÒªÓÃ.netµÄ³ÌÐòµ÷ÓÃÒ»¸öjava±àдµÄweb service½Ó¿Ú£¬½Ó¿ÚµÄÒ»¸ö²ÎÊýÒªÇómd5·½Ê½¼ÓÃÜ¡£
.netÖеÄmd5¼ÓÃÜÊǺÜÈÝÒ׵ģ¬²ÉÓÃmsdnÖиø³öµÄ·½·¨:
// Hash an input string and return the hash as
// a 32 character hexadecimal string.
static string getMd5Hash(string input)
{
......
1¡£Ê¹ÓÃjava.util.PropertiesÀàµÄload()·½·¨
ʾÀý£º InputStream in = lnew BufferedInputStream(new FileInputStream(name));
Properties p = new Properties();
p.load(in);
2¡£Ê¹ÓÃjava.util.ResourceBundleÀàµÄgetBundle()·½·¨
ʾÀý£º ResourceBundle rb = ResourceBundle.getBundle(name, Locale.getDefault());
......
¡¾ÎÄÕ±êÌâ¡¿javaС³ÌÐò£¨3£©
¡¾ÎÄÕÂ×÷Õß¡¿Ôø½¡Éú
¡¾×÷ÕßÓÊÏä¡¿zengjiansheng1@126.com
¡¾×÷ÕßQQ¡¿190678908
¡¾×÷ÕßÉùÃ÷¡¿±¾ÈËˮƽÓÐÏÞ£¬Ê§ÎóÖ®´¦£¬¾´Çë¸÷λָ³ö¡£±¾ÈËÒÔǰдµÄһЩС³ÌÐò£¬·ÖÏíÒ»ÏÂÏ£Íû¶Ô¸÷λѧϰjavaÓаïÖú ^-^
***************************************************************************** ......
ÏÂÃæÕâƪÎÄÕÂÊÇ̨ÍåÖøÃûJavaÂÛ̳¡°Javaworld¡±µÄÒ»¸ö×ÊÉî°æÖ÷дµÄÒ»·â¶ÔJavaÐÂÊÖµÄÐÅ£¬Ï£ÍûС×é³ÉÔ±×Ðϸ¿´Ï Äã»áѧµ½ºÜ¶àµÄ¡¢¡¢¡¢¡¢ 親愛µÄ java ÐÂÊÖ們 :
ºÜ¸ß興Äã們願Òâ來這裡¹²Í¬學習,
Java 這個語ÑÔ, ÒÑ經²»Ô ......