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

JavaÖÐstartWith·½·¨µÄʹÓã¡


½ñÌì¿´Java´úÂëʱ£¬¿´µ½ÁË×Ö·û´®ÓÐÒ»¸ö·½·¨ÊÇstartsWith(String str)µ±Ê±¾õµÃ¼ûÃûÖ®Ò⣬ºÜ¼òµ¥Âð£¬È»ºó¾Í×Ô¼º¶¯ÊÖ×öÁËÒ»ÏÂ,ûÏëµ½·¢ÏÖÁËÒ»¸östartsWith()·½·¨µÄÖØÔØ,startsWith(String str,int Index),µ±Ê±ÉÏÍøÈ¥²éÁËÒ»ÏÂûÓкó±ßÕâ¸ö·½·¨,ÓÚÊÇ×Ô¼º×öÁËһϲâÊÔ,ÏÖÔÚ¸ø³öÈçÏÂÏêϸ½âÊÍ,startsWith(String str)¾ÍÊǼì²éÐββÎÊýÊÇ·ñÓëÄãÒª¼ì²éµÄ×Ö·û´®¿ªÍ·Ïàͬ,¶østartsWith(Sring str,int Index)ÔòÊÇ´ÓÄãÒª±È½ÏµÄÔ­×Ö·û´®µÄÖ¸¶¨Ï±꿪ʼºÍÐβÎ×÷±È½Ï£¬ÕâÀï±ßÄØstr.startsWith(String str)ºÍstr.startsWith(string str,0)ÊÇûÓÐÇø±ðµÄ,ϱ߾Ϳ´´úÂë°É£¡
String st1 = "dsadas";
      System.out.println("st1:"+st1.startsWith("sa",1));
      String st2 = "dsadas";
      System.out.println("st1:"+st2.startsWith("sa"));
      String st3 = "dsadas";
      System.out.println("st2:"+st3.startsWith("ds"));
      String st4 = "dsadas";
      System.out.println("st4:"+st4.startsWith("ds",0));
      String st5 = "dsadas";
      System.out.println("st5:"+st5.startsWith("ds",1));
Êä³ö½á¹ûΪ:
st1:true
st1:false
st2:true
st4:true
st5:false


Ïà¹ØÎĵµ£º

¹ØÓÚ Java ¶ÔÏóÐòÁл¯Äú²»ÖªµÀµÄ 5 ¼þÊÂ

ÊýÄêÇ°£¬µ±ºÍÒ»¸öÈí¼þÍŶÓÒ»ÆðÓà Java ÓïÑÔ±àдһ¸öÓ¦ÓóÌÐòʱ£¬ÎÒÌå»áµ½±ÈÒ»°ã³ÌÐòÔ±¶àÖªµÀÒ»µã¹ØÓÚ Java ¶ÔÏóÐòÁл¯µÄ֪ʶËù´øÀ´µÄºÃ´¦¡£
¹ØÓÚ±¾ÏµÁÐ
Äú¾õµÃ×Ô¼º¶® Java ±à³Ì£¿ÊÂʵÉÏ£¬´ó¶àÊý³ÌÐòÔ±¶ÔÓÚ Java ƽ̨¶¼ÊÇdz³¢ÔòÖ¹£¬Ö»Ñ§Ï°ÁË×ãÒÔÍê³ÉÊÖÍ·ÉÏÈÎÎñµÄ֪ʶ¶øÒÑ¡£
´óÔ¼Ò»ÄêÇ°£¬Ò»¸ö¸ºÔð¹ÜÀíÓ¦ÓóÌÐòËùÓÐÓû§ÉèÖà ......

ImageMagick for java ʹÓÃJmagick´¦Àí¸ßÖÊÁ¿Í¼Æ¬

ÔÚ×öpdfÎĵµ×ª³ÉjpgµÄʱºò£¬·¢ÏÖÁËJmagickµÄ´´½¨¸ßÖÊÁ¿µÄͼƬµÄÒ»¸öjavaÀà¿â,×Ô¼ºÒÔǰʹÓÃÁíÍâµÄÒ»¸öÀà¿â,¸Ð¾õÕâ¸ö¸üºÃµã,¾ÍÊÔ×ÅÓÃÁËÏÂ,¸Ð¾õ²»´í
1.ʹÓõÄwindowsϵÄjmagick-win-6.3.9-Q16.zip µØÖ·ÊÇ£ºhttp://downloads.jmagick.org/6.3.9/
2.doc¶ÔÓ¦µÄapiµØÖ·£ºhttp://downloads.jmagick.org/jmagick-doc/
3.°²×°Ima ......

java ½Ó¿ÚÓë³éÏóÀàµÄÇø±ð£¨×ª£©

Ò»¸öÈí¼þÉè¼ÆµÄºÃ»µ£¬ÎÒÏëºÜ´ó³Ì¶ÈÉÏÈ¡¾öÓÚËüµÄÕûÌå¼Ü¹¹£¬¶øÕâ¸öÕûÌå¼Ü¹¹Æäʵ¾ÍÊÇÄã¶ÔÕû¸öºê¹ÛÉÌÒµÒµÎñµÄ³éÏó¿ò¼Ü£¬µ±´ú±íÒµÎñÂß¼­µÄ¸ß²ã³éÏó²ã½á¹¹ ºÏÀíʱ£¬Äãµ×²ãµÄ¾ßÌåʵÏÖÐèÒª¿¼Âǵľͽö½öÊÇһЩËã·¨ºÍһЩ¾ßÌåµÄÒµÎñʵÏÖÁË¡£µ±ÄãÐèÒªÔÙ¿ª·¢ÁíÒ»¸öÏà½üµÄÏîĿʱ£¬ÄãÒÔÇ°µÄ³éÏó²ã˵²»¶¨»¹¿ÉÒÔÔÙ´ÎÀûÓà ÄØ£¬Ãæ¶Ô¶ÔÏóµÄÉè¼Æ ......

java¿ò¼ÜѧϰÌå»á

      ×î½üÔÚѧϰjavaµÄ¿ò¼Ü£¬¼ÓÉîÁ˶ÔjavaһЩÉè¼ÆģʽµÄÀí½â£¬ÀýÈçÄ£°å·½·¨Ä£Ê½¡¢²ßÂÔģʽ¡¢´úÀíģʽºÍ¶¯Ì¬´úÀíģʽ£¬·¢ÏÖѧϰÀí½âservletºÍjspºóºÜÈÝÒ×¾Íѧ»áÁËstruts£¬Ñ§Ï°jdbcºó±È½ÏÈÝÒ×Àí½âhibernate£¬±¾ÈË»¹Ã»¿ªÊ¼Ñ§Ï°spring¡£
      ¶Ôstruts¿ò¼ÜµÄÀí½â£ºÖ÷ÒªÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ