Converter de Decimal, Octal e Hexa

1 resposta
R

Pessoal,

Como se faz para converter de Octal e Hexadecimal para Decimal?

Obrigado

1 Resposta

J
int x = Integer.parseInt("1e23b", 16); //hexadecimal

int x = Integer.parseInt("123", 8); //octal
Criado 6 de novembro de 2006
Ultima resposta 6 de nov. de 2006
Respostas 1
Participantes 2