题解 | #整数的个位#
整数的个位
http://www.nowcoder.com/practice/1c0ce3c9134f45edbcd4343f9d5e320a
import java.util.Scanner; import java.lang.String; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String a=sc.nextLine(); System.out.println(a.substring(a.length()-1,a.length())); } }