我需要获得两个不同长度的不同注册号的位置,并重新使用我获得的位置。如何在java中使用数组或其他技术的字符串位置
我需要为目标的部分是哪里MS字符留
我需要的方式,我可以告诉系统知道regNo
包含MS
和它做一些事情。
regNo : BCS/MS/13/09/0001
regNo : BCOM/MS/09/0149
if (the position 5 and position 6 of regNo equals to S){
.. do s.thing
}
or
if (the part after/there is MS){
... do something
}
谢谢,这更清楚了先生@Anton – user3518835