title: Conversion from one base to another
body: <p>I already try to make a program it works as well but the problem is, that is not the same output what i want.</p>
  
  <p><em><strong></em> Note **</strong></p>
  
  <p>That is what i want..</p>
  
  <p><strong>enter starting base:</strong>   it should be binary or octal or hexa</p>
  
  <p><strong>enter end base:</strong>        it should be decimal</p>
  
  <p><strong>enter number:</strong>     if 2 is entered as the starting base only 1s and 0s can be entered. If  16 is entered as the starting base 0-9 and A-F can be used.  </p>
  
  <p>and what i make :(</p>
  
  <pre><code>Scanner scanner = new Scanner(System.in);
  System.out.println("Enter a starting base: ");
  String binaryNumber = scanner.nextLine();
  System.out.println("Enter a end base: ");
  String octalNumber = scanner.nextLine();
  System.out.println("Enter a number: ");
  String decimalNumber = scanner.nextLine();
  int myInt = Integer.parseInt(binaryNumber, 2);
  int myInt2 = Integer.parseInt(octalNumber, 8);
  int x = myInt;
  System.out.println(
       binaryNumber + " in Binary, is "
     + Integer.toString(myInt, 8) + " in Octal" + " and "
     + Integer.toString(x, 10)  +" in decimal");
  </code></pre>