title: Convert base 10 number into base 16
body: <p>I have to make a class that transforms a given number in base 10 into base 16. Here is my code so far which works BUT i have to do the algorithm MANUALLY, can anybody guide me how can i do it manually ? thank you</p>
  
  <pre><code>import com.sun.org.apache.xpath.internal.SourceTree;
  
  import java.util.LinkedList;
  import java.util.Scanner;
  
  /**
   * Created by TudorV on 24/06/2016.
   */
  public class Main {
      public static void main(String[] args) {
  
          Scanner scn = new Scanner(System.in);
          int number;
  
          System.out.println("Enter a number: ");
          number = scn.nextInt();
         // String string = scn.nextLine();
          System.out.println("Your number is: " + number);
          String output ="";
          output = Integer.toString(number, 16);
          System.out.println("output is: " + output);
  
  
  
      }
  
  }
  </code></pre>