۱۳۹۵/۰۳/۱۶, ۱۱:۳۴ ق.ظ
برای این کار میتونید از متد زیر استفاده کنید
tex.substring(startIndex,endIndex)
startIndex = اندیس شروع
endIndex = اندیس پایان
String s = tex.substring(tex.Length-3,tex.Length);
tex.substring(startIndex,endIndex)
startIndex = اندیس شروع
endIndex = اندیس پایان
String s = tex.substring(tex.Length-3,tex.Length);