Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Octal {
- public static void main(String [] args) {
- int six = 06; // Equal to decimal 6
- int seven = 07; // Equal to decimal 7
- int eight = 010; // Equal to decimal 8
- int nine = 011; // Equal to decimal 9
- System.out.println("Octal 010 = " + eight);
- }
- }
Add Comment
Please, Sign In to add comment