1  public class SequenceDemo
  2  {
  3     public static void main(String[] args)
  4     {
  5        LastDigitDistribution dist1 = new LastDigitDistribution();
  6        dist1.process(new SquareSequence(), 1000);
  7        dist1.display();
  8        System.out.println();
  9  
 10        LastDigitDistribution dist2 = new LastDigitDistribution();
 11        dist2.process(new RandomSequence(), 1000);
 12        dist2.display();
 13     }
 14  }