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

JavaÖÐÌæ»»Ë«ÒýºÅ

 
//JavaÖаÑ"Ìæ»»Îª\" message="\"book\"";
System.out.println(message);
ÐèÒªÎå¸ö
message=message.replaceAll("\"","\\\\\"");
System.out.println(message);


Ïà¹ØÎĵµ£º

JavaÖз½·¨ÃüÃû¾­Ñé

JavaÖз½·¨ÃüÃûÒ»°ãÊÇ£º¶¯´Ê/¶¯´ÊÐÔ´Ê×飬Ê××ÖĸСд£¬Öм䵥´ÊµÄÊ××Öĸ´óд£¬ÆäËü×ÖĸСд¡£
¾¡Á¿Ó¦Óüòµ¥µÄ¡¢³£Óõĵ¥´Ê£¬Ê¾Àý:
get/set                          first/last
add/remove& ......

Java²Ù×÷´®¿Ú

 RXTXÊÇÒ»¸ö¿ªÔ´°ü£¬Ö÷ÒªÊÇÔÚCOMM¿ªÔ´°üÖÐ×öÀ©ÕÅ£¬ÒÔǰµÄCOMM°üÖ»ÄÜÔÚWINDOWSÏÂÃæ¶Ô´®¿Ú»ò²¢¿Ú×ö²Ù×÷£¬À©³äºóµÄRXTX¿ÉÒÔÔÚLINUXºÍMAC϶Դ®¿ÚºÍ²¢¿Ú×ö²Ù×÷¡£  ÏÖÔÚ¿çÆ½Ì¨£º
ÔÚRXTXÍøÕ¾ÏÂÔØJAR°üºÍ¶¯Ì¬¿â
http://users.frii.com/jarvi/rxtx/download.html
ÏÂÔØºóÅäÖû·¾³
Windows
¿½±´RXTXcomm.jar Îļþ ......

Java ÀíÂÛºÍʵ¼ù:·ºÐÍ11ÔÂ06ÈÕ[תÌù]

     Java ÀíÂÛºÍʵ¼ù: Á˽ⷺÐÍ Ê¶±ðºÍ±ÜÃâѧϰʹÓ÷ºÐ͹ý³ÌÖеÄÏÝÚå
 
      JDK 5.0 ÖÐÔö¼ÓµÄ·ºÐÍÀàÐÍ£¬ÊÇ Java ÓïÑÔÖÐÀàÐͰ²È«µÄÒ»´ÎÖØÒª¸Ä½ø¡£µ«ÊÇ£¬¶ÔÓÚ³õ´ÎʹÓ÷ºÐÍÀàÐ͵ÄÓû§À´Ëµ£¬·ºÐ͵ÄijЩ·½Ãæ¿´ÆðÀ´¿ÉÄܲ»ÈÝÒ×Ã÷°×£¬ÉõÖÁ·Ç³£Ææ¹Ö¡£ÔÚ±¾ÔµÄ"Java Àí ......

Java¶ÁȡͼƬÎļþµÄ¿í¶ÈºÍ¸ß¶È

InputStream is = new FileInputStream(filename);//ͨ¹ýÎļþÃû³Æ¶ÁÈ¡
»ò
InputStream is =new ByteArrayInputStream(byte[] a);//ͨ¹ýÎļþµÄ×Ö½ÚÊý×é¶ÁÈ¡
BufferedImage buff = ImageIO.read(is);
buff.getWidth();¡¡//µÃµ½Í¼Æ¬µÄ¿í¶È
buff.getHeight();  //µÃµ½Í¼Æ¬µÄ¸ß¶È
is.close(); //¹Ø±ÕStream ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ