// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class Tabel {
     private int n1;
     private int n2;
     public Tabel(int n1, int n2) {
         this.n1 = n1;
         this.n2 = n2;
     }
     public void udSkriv() {
         for(int i = 1; i <= n2; i++) {
             System.out.print(" " + i);
         }
         System.out.println();
         for(int i = 1; i <= n2; i++) {
             System.out.print(" " + (int)Math.pow(i, n1));
         }
         System.out.println();
   }
}
