Advertisement
Guest User

Base9.java

a guest
Jul 30th, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. package crossnum;
  2.  
  3. /**
  4.  * Represents a base 9 number, containing digits from 1 to 9.
  5.  *
  6.  * @author dub_nerd
  7.  *
  8.  */
  9. public class Base9 extends DigitCombo {
  10.  
  11.     /**
  12.      * A base 9 number is a digit combo in base 9. We want
  13.      * the digits to go from 1-9 rather than 0-8.
  14.      *
  15.      * @param numDigits the number of digits in this base 9 number.
  16.      */
  17.     public Base9(int numDigits) {
  18.         super(numDigits, 9, 1);
  19.     }
  20.    
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement