title: How can i extend data type in java
body: <p>How i can create my own data type in java that could store a 16-byte integer value</p>
  
  <p>the longest data-type in java by size is "long" which is 8-byte and it could store 19-digit integer value but, i want to find the factorial of 25 and the factorial of 25 is 26-digit(15511210043330985984000000). now the problem is i have no such a data-type in java that could store such huge value of 26-digits or more. </p>
  
  <p>if there is any </p>
  
  <pre><code>public long factorial(int number)
  {
      int i=1;
      long factorial=1;
  
      for(i=1;i&lt;=number;i++)
      {
          factorial = factorial * i; 
      }
      return factorial;
  }
  </code></pre>