public class demo4 { public static void main(String[] args) { String str = "(P)UA000110222(S)4123222200005"; //截取后四位 String substring = str.substring(str.length() - 4); System.out.println("substring = " + substring); //截取后七位到后四位的字符串 String substring1 = str.subs...