6 Following Java Method Converts Positive Decimal Integer Base 8 Octal Displays Result Per Q37077825

JAVA QUESTION: NEED HELP WITH NUMBER 7

6. The following Java method converts a positive decimal integer to base 8 (octal) and displays the result Perform a box trac

6. The following Java method converts a positive decimal integer to base 8 (octal) and displays the result Perform a box trace for the input n 100, and determine the ouput. static void displayOctal (int n) l if (n>0) if (n/8>0) displayOctal (n/8) System.out.println(n%8); 7. Use what you learned in problem 6 above to create a recursive function called integerTostring that returns a String representation of an integer n

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.