Skip to content

Commit b190206

Browse files
authored
Update OctalToHexadecimal.java
1 parent 7ec9158 commit b190206

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Conversions/OctalToHexadecimal.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
**/
88
import java.util.Scanner;
99

10-
public class OctalToHexadecimal{
10+
public class OctalToHexadecimal {
1111

1212
/**
1313
+ + * This method converts a Octal number to
@@ -55,9 +55,9 @@ public static void main ( String args[]) {
5555
Scanner input = new Scanner(System.in);
5656
System.out.print("Enter the Octal number: ");
5757
String oct = input.next(); //Take octal number as input from user in a string
58-
int decimal = OctToDec(oct); //Pass the octal number to function and get converted deciaml form
59-
String hex = DecimalToHex(decimal); //Pass the decimla number to function and get converted Hex form of the number
60-
System.out.println("The Hexadecimal equivalant is: "+hex);
58+
int decimal = OctToDec(oct); //Pass the octal number to function and get converted deciaml form
59+
String hex = DecimalToHex(decimal); //Pass the decimla number to function and get converted Hex form of the number
60+
System.out.println("The Hexadecimal equivalant is: "+hex);
6161
}
6262
}
6363

0 commit comments

Comments
 (0)