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

ACMÖÐʹÓÃJAVAµÄ½éÉÜ

¸½£º
Chapter I.
JavaµÄÓÅȱµã¸÷ÖÖÊéÉ϶¼ÓУ¬ÕâÀïֻ˵˵ÓÃJava×öACM-ICPCµÄÌص㣺
(1) ×îÃ÷ÏԵĺô¦ÊÇ£¬Ñ§»áJava£¬¿ÉÒԲμÓJava Challenge  
(2) ¶ÔÓÚÊìϤC/C++µÄ³ÌÐòÔ±À´Ëµ£¬Java ²¢²»ÄÑѧ£¬ÕÒ±¾Ê飬һÁ½ÖÜÒµÓàʱ¼ä¾Í¿ÉÒԸ㶨ÁË¡£µ±È»£¬ÕâÀïÖ»ÊÇÖ¸Ò»°ã±à³Ì£¬ÏëÊìϤËùÓеÄJava¿â»¹ÊÇÐèҪЩʱ¼äµÄ¡£ÊÂʵÉÏ£¬Java Ö»Ï൱ÓÚC++µÄÒ»¸ö¸Ä½ø°æ£¬ËùÓеÄÓï·¨¶¼¼¸ºõÊÇC++µÄ£¬ºÜÉÙÓб䶯¡£
(3) ÔÚÒ»°ã±ÈÈüÖУ¬Java³ÌÐò»áÓжîÍâµÄʱ¼äºÍ¿Õ¼ä£¬¶øʵ¼ÊÉϾ­¹ýʵÑ飬ÔÚÖ´ÐмÆËãÃܼ¯ÈÎÎñµÄʱºòJava²¢²»±ÈC/C++Âý¶àÉÙ£¬Ö»ÊÇIO²Ù×÷½ÏÂý¶øÒÑ¡£
(4) Java ¼òµ¥¶ø¹¦ÄÜÇ¿´ó£¬ÓÐЩ¶«Î÷ÓÃJavaʵÏÖÆðÀ´¸üΪ·½±ã£¬±ÈÈç¸ß¾«¶È¡£
(5) ÓÃJava²»Ò×·¸Ï¸Î¢µÄ´íÎ󣬱ÈÈçC/C++ÖеÄÖ¸Õ룬 “if (n = m) ... ” µÈ
(6) Ä¿Ç°À´¿´EclipseÒѳɻù±¾ÅäÖã¬Ð´Java³ÌÐò·´¶ø±ÈC/C++¸ü·½±ãµ÷ÊÔ¡£ÔÚ¾ßÌ徺ÈüʱҲËã¶àÒ»ÖÖÑ¡Ôñ¡£
(7) ѧ»áJava¶ÔÒÔºó¹¤×÷Óкô¦¡£ÏÖÔÚ¹úÍâºÜ¶àµØ·½»áJavaµÄÈ˱ȻáC/C++µÄÈ˶ࡣ
(8) »áJava¿ÉÒÔʹÄã¿´ÆðÀ´¸üÏñżÌãÀදÎţ£©    hoho~
Chapter II.
ÏÂÃæ˵һÏÂACM-ICPC¶ÓÔ±³õÓÃJava±à³ÌËùÓöµ½µÄһЩÎÊÌ⣺
1. »ù±¾ÊäÈëÊä³ö£º
(1) JDK 1.5.0 ÐÂÔöµÄScannerÀàΪÊäÈëÌṩÁËÁ¼ºÃµÄ»ù´¡£¬¼òÖ±¾ÍÊÇΪACM-ICPC¶øÉèµÄ¡£
Ò»°ãÓ÷¨Îª£º
import java.io.*
import java.util.*
public class Main
{
     public static void main(String args[])
     {
         Scanner cin = new Scanner(new BufferedInputStream(System.in));
         ...
     }
}
µ±È»Ò²¿ÉÒÔÖ±½Ó Scanner cin = new Scanner(System.in);
Ö»ÊǼÓBuffer¿ÉÄÜ»á¿ìһЩ
(2)
¶ÁÒ»¸öÕûÊý£º   int n = cin.nextInt();         Ï൱ÓÚ   scanf("%d", &n);   »ò cin >> n;
¶ÁÒ»¸ö×Ö·û´®£ºString s = cin.next();         Ï൱ÓÚ   scanf("%s", s);    »ò cin >> s;
¶ÁÒ»¸ö¸¡µãÊý£ºdouble t = cin.nextDouble();   Ï൱ÓÚ   scanf("%lf", &t); »ò cin >> t;
¶ÁÒ»ÕûÐУº&nbs


Ïà¹ØÎĵµ£º

JNAʵÏÖJavaµ÷ÓÃFortran

Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......

³¹µ×ת±äÁ÷£¬µÚ 2 ²¿·Ö£ºÓÅ»¯ Java ÄÚ²¿ I/O


Ìæ»»×Ö½ÚÊý×éÁ÷ºÍ¹ÜµÀÁ÷
ÎĵµÑ¡Ïî
<tr
valign="top"><td width="8"><img alt="" height="1" width="8"
src="//www.ibm.com/i/c.gif"/></td><td width="16"><img alt="" width="16"
he ......

java »ñµÃ ip µØÖ·

Ò»°ãÇé¿ö»ñµÃ±¾µØËùÓеÄipµØÖ·£º
try   {
InetAddress   address   =   InetAddress.getLocalHost();
System.out.println(address.getHostAddress());
String   name   =   address.getHostName();
System.out.println(name);
InetAddress[]   addresses   = &nbs ......

ʹÓÃJava NIO±àд¸ßÐÔÄܵķþÎñÆ÷

תÔصØÖ·£ºhttp://www.javaeye.com/topic/40489
´ÓJDK 1.4¿ªÊ¼£¬JavaµÄ±ê×¼¿âÖоͰüº¬ÁËNIO£¬¼´ËùνµÄ“New IO”¡£ÆäÖÐ×îÖØÒªµÄ¹¦ÄܾÍÊÇÌṩÁË“·Ç×èÈû”µÄIO£¬µ±È»°üÀ¨ÁËSocket¡£NonBlockingµÄIO¾ÍÊǶÔselect(Unixƽ̨ÏÂ)ÒÔ¼° WaitForMultipleObjects(Windowsƽ̨)µÄ·â×°£¬ÌṩÁ˸ßÐÔÄÜ¡¢Ò×ÉìËõµÄ·þÎ ......

Java Applet ʵÏÖÒ»¸ö°ë¾¶²»¶ÏÔö´óµÄ²ÊɫСÇò¶¯»­

×÷ΪApplet³ÌÐòµÄÒ»¸öÈëÃÅ£¬ÎÒÃǽñÌì̽ÌÖÒ»ÏÂÈçºÎʵÏÖÒ»¸ö°ë¾¶²»¶ÏÔö´óµÄСÇò¶¯»­£¬ÕýÈçÏÂͼËùʾ¡£
Éè¼ÆµÄ¹Ø¼ü˼Ï룺
      ÎÒÃÇÐèÒªÉ趨һ¸öСÇòµÄÔ²ÐÄ×ø±ê£¬×îºÃÊÇÔÚ´°¿ÚµÄÖÐÑ룬ȻºóÁîСÇòµÄ°ë¾¶²»¶ÏÔö´ó£¬²»¶ÏµÄÖػ棬ÒÔʵÏÖСÇòµÄÔö´ó¶¯»­¡£
Éè¼Æ·½°¸£º
    &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ