Archives: Logical Programs

Decimal to Octal Conversion in Java

In this article, you will learn how to write the Java logic for Decimal to Octal conversion. The meaning of decimal to-octal conversion is converting a number from its decimal representation (base 10) to its octal representation (base 8). Decimal Number: In the decimal number system, we use 10 digits (0-9) to represent numbers. Each digit’s position …

Decimal to Octal Conversion in Java Read More »

Convert Binary to Decimal using Recursion in Java

This article shows you how to convert Binary to Decimal using recursion in Java. Recursion in Java is a technique in which a method calls itself continuously. A method in Java that calls itself is called a recursive method. How do you convert binary to decimal? Binary to Decimal conversion is straightforward, look into the below diagram for conversion in steps: Java Program …

Convert Binary to Decimal using Recursion in Java Read More »