Prueba
import java.io.*;
import java.text.*;
public class FREDDY
{
public static void main(String []args)throws IOException
{
int regresar,opc;
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
System.out.print(“\n”);
System.out.print(“\n\tBBBBB FFFFFF RRRRRR EEEEE DDDD DDDD Y Y”);
System.out.print(“\n\tB B F R R E D D D D Y Y “);
System.out.print(“\n\tB B Y Y F R R E D D D D Y Y “);
System.out.print(“\n\tBBBBB Y Y FFFF RRRRRR EEE D D D D Y “);
System.out.print(“\n\tB B Y F RR E D D D D Y “);
System.out.print(“\n\tB B Y F R R E D D D D Y “);
System.out.print(“\n\tBBBBB Y F R RR EEEEE DDDD DDDD Y “);
System.out.print(“\n\t======================================================”);
System.out.print(“\n”);
regresar=1;
while(regresar==1)
{
System.out.print(“\nELIGE UNA OPCION PARA REALIZAR LA CONVERSION :”); System.out.print(“\n”);
System.out.print(“\n\t 1.- DECIMAL —> BINARIO”);
System.out.print(“\n\t 2.- DECIMAL —> OCTAL”);
System.out.print(“\n\t 3.- DECIMAL —>HEXADECIMAL”);
System.out.print(“\n\t “);
System.out.print(“\n\t 4.- BINARIO —> DECIMAL”);
System.out.print(“\n\t 5.- BINARIO —> OCTAL”);
System.out.print(“\n\t 6.-BINARIO —> HEXADECIMAL”);
System.out.print(“\n\t “);
System.out.print(“\n\t 7.- HEXADECIMAL —> BINARIO”);
System.out.print(“\n\t 8.- HEXADECIMAL —> OCTAL”);
System.out.print(“\n\t 9.- HEXADECIMAL —> DECIAMAL”);
System.out.print(“\n\t “);
System.out.print(“\n\t 10.-OCTAL —> BINARIO”);
System.out.print(“\n\t 11.-OCTAL —>...
Regístrate para leer el documento completo.