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

JavaÖÐÌ滻˫ÒýºÅ

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


Ïà¹ØÎĵµ£º

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

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

javaͼƬ´¦Àí ÎÄ×Öˮӡ ͼƬˮӡ Ëõ·Å ²¹°×

 ×ª×Ô http://www.javaeye.com/topic/309457
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
......

ÔËÓÃjava, jCom À´ дexcelÎļþ£¨IDispatch£©·½·¨¶þ

package sample1;
 
import java.io.File;
import jp.ne.so_net.ga2.no_ji.jcom.IDispatch;
import jp.ne.so_net.ga2.no_ji.jcom.JComException;
import jp.ne.so_net.ga2.no_ji.jcom.ReleaseManager;
/**
 * ʹÓÃjComʵÏÖдexcelÎļþµÄÁíÒ»ÖÖ·½Ê½£¨IDispatch£©
 * @author steve_wang_victor
&nbs ......

javaºËÐļ¼Êõ¾íII±Ê¼Ç

 1.¼òµ¥Ï̴߳´½¨
(1)ʵÏÖRunnable½Ó¿Ú£¬Runnable½Ó¿ÚÖ»ÓÐÒ»¸ö·½·¨run:
public interface Runnable
{
void run();
}
´´½¨ÀàʵÏÖrun·½·¨
class MyRunnable implements Runnable
{
public void run()
{
/*ÈÎÎñ´úÂë*/
}
}
(2)´´½¨¶ÔÏó
Runnable r = new MyRunnable();
(3)ÓÉRunnable´´½¨Ò»¸öThread¶ÔÏó:
......

javaµÚ7Ìì´úÂë (javaÒì³£)

/*****************TestCar1  begin************************/
public class TestCar1 {
 
 public static final int Ok=1;     //Õý³£Çé¿ö
 public static final int Wrong=2;  //Òì³£Çé¿ö
 
 public int run(){
  if("³µ×ÓûÓгöÏÖ¹ÊÕÏ"){  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ