?? longvalues.java
字號:
// operators/LongValues.java
// TIJ4 Chapter Operaters, Exercise 8, page 109
// Show that hex and octal notations work with long values.
// Use Long.toBinaryString to display the results.
import static net.mindview.util.Print.*;
public class LongValues {
public static void main(String[] args) {
long n1 = 0xffff; // hexadecimal
long n2 = 077777; // octal
print("long n1 in hex = " + Long.toBinaryString(n1));
print("long n2 in oct = " + Long.toBinaryString(n2));
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -