How to check 2 charAt(i)
问题 I have this lines: 812.12 135.14 646.17 1 812.12 135.14 646.18 1 812.12 135.14 646.19 10 812.12 135.14 646.20 10 812.12 135.14 646.21 100 812.12 135.14 646.22 100 I want to delete only the last group so I did code like this: if(lines[i].charAt(lines[i].length())-1>= '0'&&lines[i].charAt(lines[i].length()-1)<= '9'){ lines[i] = lines[i].substring(0, lines[i].length()-1); } else if(lines[i].charAt(lines[i].length())>='10'+c&&lines[i].charAt(lines[i].length()-1)<='99'){ lines[i] = lines[i]