小伙子勤奋啊!
所在版块:求学狮城 发贴时间:2003-04-28 14:25  评分:

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
when u use StringTokenizer, in the for loop if u write for( int i =0; i< st.countTokens(); i++) then u may get wrong answer, coz st.countTokens() is variable. In the for loop, u will call st.nextToken(), then after that, st.countTokens() minus 1 already. So u may get null use your program. :st.countTokens() is always count the tokens left.

donot know what is blueJ.

r u lfj??? hehehe

.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

Put your OWN COOL signature here!
 相关帖子 我要回复↙ ↗回到正文
勤奋学习java,有个关于StringTokenizer的问题 夜不归宿   (815 bytes , 589reads )
关于debug duck   (510 bytes , 220reads )
CS1102 的tutor :D 谢谢duck 夜不归宿   (0 bytes , 194reads )
Come in-->> cigar   (201 bytes , 229reads )
谢谢了,那个原来是变量>.< 夜不归宿   (0 bytes , 164reads )
>>>>> 辰星   (74 bytes , 235reads )
说清楚点,加false什么意思>.< 夜不归宿   (0 bytes , 190reads )
加false的意思是 辰星   (233 bytes , 195reads )
啊。好像 辰星   (29 bytes , 174reads )
小伙子勤奋啊! 棋主   (390 bytes , 310reads )
谢谢了:D说的真清楚. 夜不归宿   (21 bytes , 200reads )
还有附加问一个 夜不归宿   (22 bytes , 190reads )
>>>>>> 辰星   (23 bytes , 152reads )
....我想看看程序运行的过程,一步一步的debug 夜不归宿   (0 bytes , 309reads )
>>>>>>>> 辰星   (114 bytes , 175reads )