Skip to content

Instantly share code, notes, and snippets.

@kamatama41
Created December 27, 2013 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamatama41/8144673 to your computer and use it in GitHub Desktop.
Save kamatama41/8144673 to your computer and use it in GitHub Desktop.
8進数のリテラルで数値を表現できる
public class OctalInteger {
public static void main(String[] args) {
System.out.println(0001); // 1
System.out.println(0010); // 8
System.out.println(0100); // 64
// System.out.println(0800); // compile error
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment