Just paste these java codes in your java file .Compile and Run it .

Now u will be able to easily convert the Number System to each other in java