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

java½âÎöpropertiesµÄ·½·¨

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());
3¡£Ê¹ÓÃjava.util.PropertyResourceBundleÀàµÄ¹¹Ô캯Êý
ʾÀý£º InputStream in = new BufferedInputStream(new FileInputStream(name));
ResourceBundle rb = new PropertyResourceBundle(in);
4¡£Ê¹ÓÃclass±äÁ¿µÄgetResourceAsStream()·½·¨
ʾÀý£º InputStream in = JProperties.class.getResourceAsStream(name);
Properties p = new Properties();
p.load(in);
5¡£Ê¹ÓÃclass.getClassLoader()ËùµÃµ½µÄjava.lang.ClassLoaderµÄgetResourceAsStream()·½·¨
ʾÀý£º InputStream in = JProperties.class.getClassLoader().getResourceAsStream(name);
Properties p = new Properties();
p.load(in);
¡¢6¡£Ê¹ÓÃjava.lang.ClassLoaderÀàµÄgetSystemResourceAsStream()¾²Ì¬·½·¨
ʾÀý£º InputStream in = ClassLoader.getSystemResourceAsStream(name);
Properties p = new Properties();
p.load(in);
²¹³ä
ServletÖпÉÒÔʹÓÃjavax.servlet.ServletContextµÄgetResourceAsStream()·½·¨
ʾÀý£ºInputStream in = context.getResourceAsStream(path);
Properties p = new Properties();
p.load(in);


Ïà¹ØÎĵµ£º

java¼Çʱ¾

³ÌÐòûʲôº¬½ðÁ¿£¬¸ßÊÖĪЦ¡£
package first;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.*;
import ......

JavaÐòÁл¯»úÖÆÒªÐòÁл¯ÄÇЩÄÚÈÝ

 ÔÚjavaeyeÉÏËѵ½Ò»Æªrobbin¹ØÓÚjavaÐòÁл¯µÄ»Ø¸´£¬ÎÒ¾õµÃÆäÖеÄÀý×ÓºÜÓÐ˵·þÁ¦£¬×ª¹ýÀ´ºÍ´ó¼Ò·ÖÏí¡£
      ¹ØÓÚ¸ü¶àjavaÐòÁл¯µÄÎÊÌâ¿ÉÒԲμûJAVAϵÁÐÖ®¶ÔÏóµÄÐòÁл¯Óë·´ÐòÁл¯
      JavaµÄÐòÁл¯»úÖÆÖ»ÐòÁл¯¶ÔÏóµÄÊôÐÔÖµ£¬¶ø²»»áÈ¥ÐòÁл¯Ê²Ã´ËùνµÄ·½·¨¡£Æä ......

Javaϸ½Ú£¨3£©


21   Àà = Óò + ·½·¨
       Óò = Êý¾Ý
       ·½·¨ = ¹¦ÄÜ
22   ÒýÓÃÊý¾ÝÀàÐͱäÁ¿µÄËĸöÊôÐÔ£º¢Ù±äÁ¿Ãû ¢ÚÊý¾ÝÀàÐÍ ¢Û´æ´¢µ¥Ôª ¢Ü±äÁ¿Öµ
23   ÔÚÒýÓÃÊý¾ÝÀàÐͱäÁ¿´æ´¢µ¥ÔªÄÚ´æ·ÅµÄ±äÁ¿ÖµÊÇÒýÓ㬼´Ö¸ÏòÊ ......

java profiler

Dear han luoxing,
Thank you for trying YourKit Java Profiler.
Please find your personal evaluation license key below.
With this key, you can evaluate YourKit Java Profiler for 15 days, starting today.
When asked to provide license key, copy and paste the following entire block of lines:
13c970a ......

java ºÍ.netµÄMD5¼ÓÃܲ»Ò»Ñù£¿£¡

ÓÉÓÚ¹¤×÷ÐèÒª£¬ÒªÓÃ.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)
{
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ