int to Binary Octal Hexa Java

int to Binary Octal Hexa: Sometimes, it may be necessary to convert a decimal value into binary or octal or hexadecimal notation. Java comes with predefined methods to do the job with two styles. Following methods are defined in java.lang.Integer class. public static java.lang.String toString(int, int) : converts first parameter int to second parameter int. …

int to Binary Octal Hexa Java Read More »