import java.util Scanner sc=new Scanner(System.in); a=sc.nextint(); .. .. 转载于:https://my.oschina.net/kongjunli/blog/730731