package com.mytest.demo1; import java.util.Scanner; public class Rnumber { public static void main(String[] args) { System.out.println("please input the number :"); Scanner sc = new Scanner(System.in); int num = sc.nextInt(); // int[] j; int g = num%10; int s = num/10%10; int b = num/10/10%10; System.out.println("个位数是:"+g); System.out.println("十位数是:"+s); System.out.println("百位数是:"+b); System.out.println(System.getProperty("file.encoding")); // for (int i = 0 ; i < 3 ; i++ ){ // System.out.println(i); // } } }
package com.mytest.demo1; import java.util.Scanner; public class hello { //快速指令psvm public static void main(String[] args) { //sout System.out.println("hello,this is my world,please input number what you want :"); //输入number语句 Scanner sc = new Scanner(System.in); int i = sc.nextInt(); System.out.println(i); } }
0 111 1111 =127 1 111 1111 =-127
"/u0000"是正确的!!!
文章知识点与官方知识档案匹配,可进一步学习相关知识