我需要獲得兩個不同長度的不同註冊號的位置,並重新使用我獲得的位置。如何在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