• This is default featured slide 1 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by NewBloggerThemes.com.

  • This is default featured slide 2 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by NewBloggerThemes.com.

  • This is default featured slide 3 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by NewBloggerThemes.com.

  • This is default featured slide 4 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by NewBloggerThemes.com.

  • This is default featured slide 5 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by NewBloggerThemes.com.

ASCII A HEX O VICEVERSA

Esto esta dedicado en ciertos casos a quienes tiene coneccion inalambrica en interfaz linux y como simple juego el programa se encarga de convertir cadenas de caracteres de ascii a hexadecimal y viceversa.
El resultado se logra de esta manera con este codigo
String cadena = "thelma";
String valor = Integer.toHexString((int)(cadena.charAt(i))).toUpperCase();
// El chatAt(i) sirve para usar cada caracter y convertir cada caracter al valor hexa obvio esto va en un bucle

y el paso inverso es con
//la variable i es referente a un bucle solo para obtener la posicion que comiensa en 0 y tiene una extencion de 2 caracteres

String valor = cadena.substring(i, i + 2);
como cada valor hexa tiene un equivalente en ascci pero esta en base 2^16 por eso el numero 16 como ratio en el integer.parseInt
 char letra = (char) Integer.parseInt(valor, 16);

Share:

Visitantes

Flag Counter

Popular Posts

Etiquetas

Recent Posts