在Visual Basic中,我曾经使用Mid函数循环遍历字符串并检查每个字符,即如下所示:
For intPosition = 1 To strlength
' loop to examine each character in turn
strchar = Mid(strstring, intposition, 1)
Next
Run Code Online (Sandbox Code Playgroud)
问题是,我将如何使用Java做类似的事情?
提前致谢.
| 归档时间: |
|
| 查看次数: |
7617 次 |
| 最近记录: |