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

java¼ÓÃÜÓë½âÃÜ£¨Ò»£©

jdk°²È«Ç¿¶ÈÉèÖãº
   http://java.sun.com/javase/downloads/index.jspÖеÄOther DownloadsÏÂÔØ 
   ½âѹzip,
   ÓÃÆäÖеÄÁ½¸öjar°ü¸²¸Çjdk6ÏÂ\%JDK_HOME%\jre\lib\securityĿ¼ÏµÄjar°ü
   jreĿ¼ÏÂÒ²×÷ÏàͬÅäÖÃ
   È»ºóͨ¹ý´úÂë¶Î
try {
   KeyGenerator kg = KeyGenerator.getInstance("AES");
   kg.init(256);
   SecretKey secretKey = kg.generateKey();
   byte[] key = secretKey.getEncoded();
   System.out.println("ok");
  } catch (NoSuchAlgorithmException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }
  ¶Ôµ÷ÕûºóµÄϵͳȨÏÞ½øÐÐÑéÖ¤,Ö´ÐÐ˳Àû,±íʾÉúЧ,Èç¹û²»½øÐе÷Õû,ÓÉÓÚ³ö¿ÚÏÞÖÆ,ÃÜÔ¿²»Ö§³Ö256λ.
  MD4,IDEAµÈ¼ÓÃÜËã·¨,java6²»Ö§³Ö,¿ÉÒÔͨ¹ýÔÚJRE»·¾³ÖÐÅäÖÿªÔ´×é¼þ°üBounce Castle,¼ÓÈë¶ÔÓ¦µÄ
  ÌṩÕß,»ñµÃÏàÓ¦µÄËã·¨Ö§³Ö.
  ´Óhttp://www.bouncycastle.org/latest_releases.html
  ÏÂÔØ bcprov-jdk16-145.jar ,bcprov-ext-jdk16-145.jar
  À©³äËã·¨Ö§³ÖµÄÁ½ÖÖ·½Ê½
  1ÅäÖ÷½Ê½:
   ÐÞ¸ÄÅäÖÃÎļþ,\%JDK_HOME%\jre\lib\security\java.securityÖмÓÈë
   security.provider.10=org.bouncycastle.jce.provider.BouncyCastleProvider
   È»ºó°Ñbcprov-ext-jdk16-145.jar·ÅÈë\%JDK_HOME%\jre\lib\extĿ¼ÏÂ
   jreĿ¼ÏÂÒ²×÷ÏàͬÅäÖÃ
  2µ÷Ó÷½Ê½:
   °Ñbcprov-jdk16-145.jarµ¼È빤³Ì,½Ó×ÅÔÚ³ÌÐòÖÐÒªµ¼ÈëÁ½¸öÀà
   java.security.Security
   org.bouncycastle.jce.provider.BouncyCastleProvider
   ½Ó×ÅÔÚ³õʼ»¯¹¤³§,ÃÜÔ¿Éú³ÉÆ÷µÈÒýÇæÀàʱ,²ÉÓÃÈçÏ·½Ê½
   Security.addProvider(new BouncyCastleProvider())
   »òÕßÔÚ³õʼ»¯¹¤³§,ÃÜÔ¿Éú³ÉÆ÷µÈÒýÇæÀàʱ,²ÉÓÃÈçÏ·½Ê½
   MessageDigest md = MessageDigest.getInstance("MD4","BC");
 
  


Ïà¹ØÎĵµ£º

Java FX ±àд½Å±¾

½Å±¾±äÁ¿ÊÇʹÓà var »ò def ¹Ø¼ü×ÖÉùÃ÷µÄ¡£
¶þÕßÖ®¼äµÄÇø±ðÔÚÓÚ£ºÔڽű¾µÄÕû¸öÉúÃüÖÜÆÚÄÚ¶¼¿ÉÒÔΪ var ±äÁ¿¸³ÓèÐÂÖµ£¬
¶ø def ±äÁ¿ÔÚ±»Ê״θ³ÓèÐÂÖµºó½«±£³Ö²»±ä£»
def numOne = 100;
def numTwo = 2;
var result;
add();
subtract();
multiply();
divide();
function add() {
result = numOne + numTwo; ......

Java СÊý¾«È·¼ÆËãÎÊÌâ

System.out.println(2.00 -1.10);//0.8999999999999999
ÉÏÃæµÄ¼ÆËã³öµÄ½á¹û²»ÊÇ0.9£¬¶øÊÇÒ»Á¬´®µÄСÊý¡£ÎÊÌâÔÚÓÚ1.1 Õâ¸öÊý×Ö²»Äܱ»¾«È·±íʾ
Ϊһ¸ödouble£¬Òò´ËËü±»±íʾΪ×î½Ó½üËüµÄdouble Öµ£¬¸Ã³ÌÐò´Ó2 ÖмõÈ¥µÄ¾ÍÊÇÕâ¸öÖµ£¬
µ«Õâ¸ö¼ÆËãµÄ½á¹û²¢²»ÊÇ×î½Ó½ü0.9 µÄdoubleÖµ¡£
Ò»°ãµØËµ£¬ÎÊÌâÔÚÓÚ²¢²»ÊÇËùÓеÄСÊý¶¼¿ÉÒ ......

Java »­ÏßÉèÖôÖϸ¡¢ÑÕÉ«

Graphics2D arg£»
float thick=3.0f;
arg1.setStroke(new BasicStroke(thick, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_ROUND));
arg1.drawLine(first.x, first.y, next.x, next.y);
arg1.setColor(Color.red);
......

java´«Öµ»¹ÊÇ´«ÒýÓÃ

×î½üÒ»Ö±ÔÚ¿´primer c++£¬º¯ÊýÒ»Õ¶Ôc++º¯ÊýÖ®¼ä´«µÝ²ÎÊýÓÐÏêϸµÄ½²½â£¬´«Öµ¡¢´«Ö¸ÕëºÍ´«ÒýÓõÄÓ¦ÓÃÓëÇø±ð¶¼½²µÃºÜÇå³þ£¬
ÒÔǰһֱÓÃjava£¬ÓÉÓÚjavaûÓÐÖ¸Õ룬µ±Ê±Ò²Ã»ÓÐÒýÓÃÕâ¸ö¸ÅÄËùÒÔûÓжÔjava²ÎÊýµÄ´«µÝÓйý¶àµÄ˼¿¼£¬ÏÖÔÚ¸ãÇå³þÁËc++
´«µÝ²ÎÊýµÄ»úÖÆ£¬×ÔÈ»¾Í»á¸újava½øÐжԱȣ¬¾¿¾¹java´«µÄÊÇʲô¶«Î÷£¿
Java´ú ......

Nutz Java ±àÂë¹æ·¶ (V1.0)

Nutz Java ±àÂë¹æ·¶ (V1.0) By:zozoh 0. ¹æ·¶µÄ¹æ·¶ 1. ´úÂë¸ñʽ 2.1 °ü 2.2 ÀàºÍ½Ó¿Ú 2.3 ³ÉÔ±±äÁ¿ 2.4 ³£Á¿ 2.5 ¾Ö²¿±äÁ¿ 2.6 ³ÉÔ±º¯ÊýºÍ¾²Ì¬º¯Êý ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ