String String data taken before and after the specified number

SG = String " 12312/412 " 
// content after taken / comprising / indexs + 1 can be changed +0 
int indexs = sg.indexOf ( " / " ); 
        String newStr = sg.substring (+ indexs . 1 ) ;

 

Guess you like

Origin www.cnblogs.com/yanchaohui/p/11579477.html