Ò»ÖøÃûÈí¼þ¹«Ë¾µÄjava±ÊÊÔËã·¨Ìâ
Ò»ÖøÃûÈí¼þ¹«Ë¾µÄjava±ÊÊÔËã·¨Ì⣡(2008-11-06 12:49:19)±êÇ©£ºjava ÃæÊÔÌâ it ·ÖÀࣺJ2SE
ÔÌâÈçÏ£ºÓÃ1¡¢2¡¢2¡¢3¡¢4¡¢5ÕâÁù¸öÊý×Ö£¬ÓÃjavaдһ¸ömainº¯Êý£¬´òÓ¡³öËùÓв»Í¬µÄÅÅÁУ¬È磺512234¡¢412345µÈ£¬ÒªÇó£º "4 "²»ÄÜÔÚµÚÈý룬 "3 "Óë "5 "²»ÄÜÏàÁ¬.
ÎÒ¿´ÁË»ØÌù¶¼Ã»Óкܺýâ¾ö£¬Ö÷ÒªÊÇûÓÐÅųýÖظ´¡£
½â¾ö˼·£ºÇ¿»¯ÌâÄ¿£¬ÓÃ1¡¢2¡¢2¡¢3¡¢4¡¢5ÕâÁù¸öÊý×ÖÅÅÁГµÝÔö”ÐòÁС£ÆäËûÒªÇ󲻱䡣
Ë㷨˼·£ºÏÔÈ»Êǵݹ飬³õʼÐòÁÐ122345£¬ÏÈ´ÓÄ©Á½Î»(45)±ä»¯(45,54),È»ºóÄ©Èýλ(345) ... Ö±µ½×îºóÁùλ.ÔõÑù½â¾öÖظ´ÎÊÌ⣿ºÜ¼òµ¥£¬ÓÉÓÚÊǵÝÔöÐòÁУ¬Ã¿Éú³ÉÐÂÐòÁпÉÓëÇ°Ò»Éú³ÉÐòÁбȽϣ¬Èç <·ÅÆúµ±Ç°ÐòÁС£µ±È»ÓиüºÃЧÂÊ£¬ÈçÔ¤ÏÈÔ¤²â¡£´úÂëÈçÏ£º
class test
{
// µ±Ç°¹Ì¶¨²¿·Ö
private String CurFixPart;
private String PreGenNum;
public static void main(String[] args)
{
test t=new test();
t.GenControll( "122345 ");
}
// µ÷Õû×Ö·û´®sλÖÃpos×Ö·ûµ½×îÇ°
private String shift(String s, int pos)
{
String newStr;
if (s.length()> pos+1)
newStr=s.substring(pos, pos+1)
+s.substring(0, pos)
+s.substring(pos+1);
else
newStr=s.substring(pos)
+s.substring(0, pos);
return newStr;
}
protected int Validate(String newNum)
{
String newGenNum=CurFixPart+newNum;
if (Integer.valueOf(newG
Ïà¹ØÎĵµ£º
21 Àà = Óò + ·½·¨
Óò = Êý¾Ý
·½·¨ = ¹¦ÄÜ
22 ÒýÓÃÊý¾ÝÀàÐͱäÁ¿µÄËĸöÊôÐÔ£º¢Ù±äÁ¿Ãû ¢ÚÊý¾ÝÀàÐÍ ¢Û´æ´¢µ¥Ôª ¢Ü±äÁ¿Öµ
23 ÔÚÒýÓÃÊý¾ÝÀàÐͱäÁ¿´æ´¢µ¥ÔªÄÚ´æ·ÅµÄ±äÁ¿ÖµÊÇÒýÓ㬼´Ö¸ÏòÊ ......
Dear han luoxing,
Thank you for trying YourKit Java Profiler.
Please find your personal evaluation license key below.
With this key, you can evaluate YourKit Java Profiler for 15 days, starting today.
When asked to provide license key, copy and paste the following entire block of lines:
13c970a ......
¡¾ÎÄÕ±êÌâ¡¿javaС³ÌÐò£¨1£©
¡¾ÎÄÕÂ×÷Õß¡¿Ôø½¡Éú
¡¾×÷ÕßÓÊÏä¡¿zengjiansheng1@126.com
¡¾×÷ÕßQQ¡¿190678908
¡¾×÷ÕßÉùÃ÷¡¿±¾ÈËˮƽÓÐÏÞ£¬Ê§ÎóÖ®´¦£¬¾´Çë¸÷λָ³ö¡£±¾ÈËÒÔǰдµÄһЩС³ÌÐò£¬·ÖÏíÒ»ÏÂÏ£Íû¶Ô¸÷λѧϰjavaÓаïÖú ^-^
***************************************************************************** ......
¡¾ÎÄÕ±êÌâ¡¿javaС³ÌÐò£¨2£©
¡¾ÎÄÕÂ×÷Õß¡¿Ôø½¡Éú
¡¾×÷ÕßÓÊÏä¡¿zengjiansheng1@126.com
¡¾×÷ÕßQQ¡¿190678908
¡¾×÷ÕßÉùÃ÷¡¿±¾ÈËˮƽÓÐÏÞ£¬Ê§ÎóÖ®´¦£¬¾´Çë¸÷λָ³ö¡£±¾ÈËÒÔǰдµÄһЩС³ÌÐò£¬·ÖÏíÒ»ÏÂÏ£Íû¶Ô¸÷λѧϰjavaÓаïÖú ^-^
***************************************************************************** ......
дÈë
public static void Writer(String value) {
try{
File file2 = new File("F:\\countDB.txt");
if(!file2.exists()){
  ......