Skip to content

Instantly share code, notes, and snippets.

@Alkimisti
Created March 1, 2021 12:00
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 Alkimisti/07c372dc07b5a4c4ba465109070c71fe to your computer and use it in GitHub Desktop.
Save Alkimisti/07c372dc07b5a4c4ba465109070c71fe to your computer and use it in GitHub Desktop.
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