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

java×Ö·û´®ÎÊÌâ

ÇëÎÊÎÒÒª°ÑÒ»¸ö×Ö·û´®Ã¿Á½¸öϸ·ÖΪһ¸ö×Ö·û´®£¬ÒªÔõÑùʵÏÖ£¿Óкõķ½·¨Âð
ÎÒµÄʵÏÖ¾ÍÊÇ×ö¸öfor()  È»ºóÓÃsubString À´½ØÈ¡¡£¡£²»¹ýÎÒ·¢ÏÖЧÂʺܵ͡£¡£¡£¡£
¾Ù¸öÀý×Ó°¡ ±ÈÈçʲôÊÇԭʼµÄ×Ö·û´® ϸ·ÖÖ®ºóµÄÊÇʲôÑù×ӵģ¿

Ô­À´ÊÇ D234F4E5FF
ÎÒÒª°ÑÉÏÃæµÄ×Ö·û ϸ·Ö³É string str[]={"D2","34","F4"........} µÈµÈ

ÊDz»ÊÇÓɸöº¯Êý½ÐStringTokenizerµÄ¡£¡£È¥²é²édocÔõôÓõİɡ£¡£

ÒýÓÃ
ÊDz»ÊÇÓɸöº¯Êý½ÐStringTokenizerµÄ¡£¡£È¥²é²édocÔõôÓõİɡ£¡£

Õâ¸öÀ಻ÐÐ°É ÐèÒª·Ö¸ô·ûµÄ µ«ÊÇlzµÄ×Ö·û´®ÊÇÁ¬½ÓÔÚÒ»ÆðµÄ

ÎҸоõÖ±½Ó¾ÍsubString°É ûɶ²»ºÃµÄ

subString¾Í¿ÉÒÔÁË£¬StringTokenizerÕâÖÖ Çé¿ö  ²»Ðа¡

Â¥Ö÷Ìù³ö´úÂë  ´ó¼Ò °ïæ ¿´¿´ ЧÂÊ ÈçºÎ¡£¡£¡£¡£

ÏÖÔÚ»¹ÓÐÒ»¸öÎÊÌâ¡£¡£¾ÍÊÇÈçºÎ°Ñ  String cardId="D42BBF2300A300";
ת³É long l = 0XD42BBF2300A300l;




Java code:
public static void main(String args[]){
String str = "D2ddas2131dsaj13jisajiod1jio34F4E5FF";

int end = 0;
int i = 0;

if (str.length()%2 == 0)
end = str.length()-2;
else
end = str.length()-1;

while(i+1 <= end){
System.out.println(str.substring(i, i+2));
i += 2;


Ïà¹ØÎÊ´ð£º

linuxÏÂjavaµ÷ÓÃC£«£«¿âÖк¯ÊýµÄÎÊÌâ

²»ÖªµÀÊÇʲôԭÒò£¬ÎÒ¸ÃÈçºÎ´¦Àí£¬Çë´óϺÃÇÖ¸½ÌÁË£¬Ð¡µÜÔÚ´Ëл¹ý¡£¡£¡£¡£
´íÎóÐÅÏ¢ÈçÏ£º
The program being debugged was signaled while in a function called from GDB.
GDB has restored the context t ......

Unable to compile class for JSP - Java / Web ¿ª·¢

<%@page language="java" contentType="text/html;charset=gb2312" import="java.sql.*"%>
<jsp:useBean id="db" class="wang.connectDB"/>
< ......

javaÎÊÌâ

1.¶ÔÏó¿ÉÒÔ¸³Öµ£¬Ö»ÒªÊ¹Óø³ÖµºÅ£¨µÈºÅ£©¼´¿É£¬Ï൱ÓÚÉú³ÉÁËÒ»¸ö¸÷ÊôÐÔÓ븳ֵ¶ÔÏóÏàͬµÄжÔÏó¡£
Õâ¾ä»°´íÔÚÄÄÀï?


2.public class aa {
public static void main(String[] args) {
int x;
......

javaÀàÐÍת»»ÎÊÌâ

ÈçºÎ½«ArrayList.get()·µ»ØµÄobjetת»»³ÉÆäËûÀàÐÍ£¿»òÕßÎÒÈçºÎÉú³ÉÒ»¸öÒÔfloatÀàÐÍΪ»ù´¡µÄarraylistÀàÐÍ£¿»òÕßÎÒÈçºÎ°Ñarraylist.get()µÃµ½µÄÖµºÍfloatÀàÐÍ×÷±È½Ï£¿

ÈçÐèÒªÔĶÁ¸Ã»Ø¸´£¬ÇëµÇ¼»ò×¢²áCSDN!
......

Java swing Á½¸ö´°¿Ú¹Ø±ÕÎÊÌâ

ÎÒÔÚ×öÒ»¸ö¿¼ÊÔϵͳ£¬ÓÐÁ½¸öJFrame Ò»¸öÊǵǽ´°Ìå LoginFrame , Ò»¸öÊÇÑ¡Ìâ´°Ìå ChoiceFile £¬ÔÚÖ÷³ÌÐòÀïÔËÐÐ LoginFrame £¬ÎÒÏëÔڵǼ³É¹¦ÒÔºóתµ½ ChoiceFile ´°Ì壬ͬʱ¹Ø±Õ LoginFrame ´°Ìå¡£
ÏÖÔÚÎÒÒѾ­¿ÉÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ