Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public class Aufgabe3 {
  2.  
  3. public static void main(String[] a) {
  4. Elem[] el=new Elem[3];
  5.  
  6. for(int i=0;i<el.length;i++) {
  7. el[i] = new Elem();
  8. el[i].inh = i;
  9.  
  10. System.out.print(el[i].inh);
  11. System.out.println();
  12. }
  13. }
  14. }
  15. class Elem{
  16. int inh;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement