/*Casting to short via (short)# gives overflow, but casting to long via (long)# gives compile error.short y = (short)198_203_304;
// won't compile as number isoutside long range
lo
我有这个程序可以打印出任何基数的数字,但我只是想知道如何让它打印负数,比如二进制或十六进制。(DIGIT_TABLE.charAt((int) (n % base))); /*public staticvalue to see it in decimal form, a long value and a int for the base "
+ "