import java.text.MessageFormat;
public class Test {
public static void main(String[] args) {
final String printFormatPattern = "{0}数据类型:最大值 = {1,number,integer},最小值 = {2,number,integer}";
System.out.println(MessageFormat.format(printFormatPattern,"int",Integer.MAX_VALUE,Integer.MIN_VALUE));
System.out.println(MessageFormat.format(printFormatPattern,"long",Long.MAX_VALUE,Long.MIN_VALUE));
System.out.println(MessageFormat.format(printFormatPattern,"short",Short.MAX_VALUE,Short.MIN_VALUE));
System.out.println(MessageFormat.format(printFormatPattern,"byte",Byte.MAX_VALUE,Byte.MIN_VALUE));
}
}