Java substring a local variable inside a while loop

前端 未结 3 1210
余生分开走
余生分开走 2021-01-24 10:41

I have been trying to construct a while loop for looping through a string when it contains a \'pattern\' i\'m looking for. The string is a local variable, declared just above th

3条回答
  •  旧时难觅i
    2021-01-24 11:32

    modifiedOnlineList.substring() just returns a substring of the original modifiedOnlineList, it doesn't modify modifiedOnlineList.

提交回复
热议问题