Function to convert decimal value to equivalent hexadecimal value
static String Hexadecimal ( int decima ) { String hex = " " ; while ( decima > 0 ) { int remainder = decima % 16 ; if ( remainder >= 0 && remainder <= 9 ) hex = remainder + hex ; else hex = ( char ) ( ' A ' + remainder % 10 ) + hex ; decima /= 16 ; } return hex ; }