Page 1 of 1

Q2. Complete the following class: public class My IntArray implements Comparable
Posted: Sat Nov 27, 2021 2:30 pm
by answerhappygod
Q2 Complete The Following Class Public Class My Intarray Implements Comparable My Intarcayx Public Int A Null 1
Q2 Complete The Following Class Public Class My Intarray Implements Comparable My Intarcayx Public Int A Null 1 (13.65 KiB) Viewed 67 times
Q2.
Complete the following class:
public class MyIntArray
implements Comparable<MyIntArray>{
public
int[] a = null;
//
.....................
}
where MyIntArray x is smaller than/greater than/equal to
MyIntArray y if summation of values of elements in x is less
than/greater than/equal to summation of values of elements in
y.
Q2. Complete the following class: public class My IntArray implements Comparable<My IntArcayx{ public int[] a = null; // } where MyIntArray x is smaller than/greater than/equal to MyIntArray y if summation of values of elements in x is less than/greater than/equal to summation of values of elements in y.