package com.xijiaopractice;
public class Test32 {
/*
* 取一个整数 a从右端开始的4~7位。
*/
public static void main(String[] args) {
long a=346787439;
String str=Long.toString(a);
System.out.println(str);
for (int i = str.length()-7; i < str.length()-3; i++) {
char ch=str.charAt(i);
System.out.print(ch+" ");
}
}
}
java基础编程60题之32
猜你喜欢
转载自blog.csdn.net/m0_38068868/article/details/81061892
今日推荐
周排行