Numbers4 #3

Open
opened 2021-06-19 12:42:04 +02:00 by s462083 · 0 comments
Owner

public class Numbers4 {

public static void main(String[] args) {
    OddEven.MyNumbers[] numbers = {
            new OddEven().new OddNumbers(new int[] {0,1,2,3,4,5,6,7,8,9}),
            new OddEven().new EvenNumbers(new int[] {0,1,2,3,4,5,6,7,8,9}),
            new OddEven().new OddNumbers(new int[] {2,4,6,8}),
            new OddEven().new EvenNumbers(new int[] {1,3,5,7})
    };
    for (OddEven.MyNumbers number : numbers) {
        number.display();
        number.displayMin();
        number.displayMax();
        number.displaySumLimit();
    }
}

}

public class Numbers4 { public static void main(String[] args) { OddEven.MyNumbers[] numbers = { new OddEven().new OddNumbers(new int[] {0,1,2,3,4,5,6,7,8,9}), new OddEven().new EvenNumbers(new int[] {0,1,2,3,4,5,6,7,8,9}), new OddEven().new OddNumbers(new int[] {2,4,6,8}), new OddEven().new EvenNumbers(new int[] {1,3,5,7}) }; for (OddEven.MyNumbers number : numbers) { number.display(); number.displayMin(); number.displayMax(); number.displaySumLimit(); } } }
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: s462083/programowanie_obiektowe#3
No description provided.