Fill in the most appropriate code in the blanks in the MyInt class?

```
public class MyInt implements _______ {
int id;

public MyInt(int id) {
this.id = id;
}

public String toString() {
return String.valueOf(id);
}

public int compareTo(_______ arg0) {
if (id > arg0.id)
return 1;
else if (id < arg0.id)
return -1;
else
return 0;
}
}```

a. Comparable / Object
b. Comparable / MyInt
c. Comparable / Object
d. Comparable / MyInt

b

Computer Science & Information Technology

You might also like to view...

One of the main e-readers is the Amazon Kindle

Indicate whether the statement is true or false

Computer Science & Information Technology

________ is when a line used to estimate values is extended beyond the end of the known data

A) Extrapolation B) Perspective C) Marking D) Trending

Computer Science & Information Technology