Created
March 1, 2021 12:00
-
-
Save Alkimisti/07c372dc07b5a4c4ba465109070c71fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Decimal2Octal { | |
public static void main(String[] args){ | |
String oct1 = Integer.toOctalString(1); | |
System.out.println(oct1); | |
String oct2 = Integer.toOctalString(12); | |
System.out.println(oct2); | |
String oct3 = Integer.toOctalString(123); | |
System.out.println(oct3); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment