问题描述
我需要几个javabats的帮助。
1)http://javabat.com/prob?id=String3.sumNumbers
i need help with a couple of javabats.
1) http://javabat.com/prob?id=String3.sumNumbers
推荐答案
是的,我忘了把ret字符串放在另一种方法中。对于像7 11这样的字符串,它有一个空格,所以我想压缩它。是的,我明白你的意思。
首先,我会检查每个字符,看看它是否是一个int。然后我必须做一些事情,检查它是否是一个两位数或一位数,我在那里遇到麻烦
yeah, i forgot to put ret string in the other method. For a string like "7 11", it has a space in it, so I want to condense it. Yeah, i see what u mean.
First I would check each char and see whether or not it is a int. then i have to do something ot check whether or not it is a double digit or a single digit, im having some trouble there
三位数,四位数,... 。Hello123World4567Example
一直在考虑它,直到你提出的解决方案对你更清楚。
Triple digits, quadruple digits, ... "Hello123World4567Example"
keep thinking about it until your proposed solution is clearer to you.
这篇关于需要一些javabats的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!