
public class demoStruct {

  public static void main(String[] args) {
    newStruct  s1,
                s2;

    s1 = new newStruct(12,21);
    s2 = new newStruct(24,42);

    s1.output();
    s2.output();
  }
}

class newStruct {
  int wert1,
        wert2;

  newStruct (int wert1,int wert2)
  {
    this.wert1 = wert1;
    this.wert2 = wert2;
  }

  void output()
  {
    System.out.println("Wert1: " + wert1 + " Wert2: " + wert2);
  }
}