Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Aufgabe3 {
- public static void main(String[] a) {
- Elem[] el=new Elem[3];
- for(int i=0;i<el.length;i++) {
- el[i] = new Elem();
- el[i].inh = i;
- System.out.print(el[i].inh);
- System.out.println();
- }
- }
- }
- class Elem{
- int inh;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement