File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
**/
8
8
import java .util .Scanner ;
9
9
10
- public class OctalToHexadecimal {
10
+ public class OctalToHexadecimal {
11
11
12
12
/**
13
13
+ + * This method converts a Octal number to
@@ -55,9 +55,9 @@ public static void main ( String args[]) {
55
55
Scanner input = new Scanner (System .in );
56
56
System .out .print ("Enter the Octal number: " );
57
57
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 );
61
61
}
62
62
}
63
63
You can’t perform that action at this time.
0 commit comments