题解 | #整数的十位#
整数的十位
http://www.nowcoder.com/practice/031db23916904f4fad72198fe491b47b
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()-2,a.length()-1)); /* int num=sc.nextInt(); System.out.println((num%100)/10); */ } }