PC
class VersionImpl implements Version {
private int v;
VersionImpl(int v) {
this.v = v;
}
compareTo(Version other) {
return Integer.compare(v, ((VersionImpl)other) .v)
}
} Прошу прощения за форматирование, с телефона не очень
Size: a a a
PC
class VersionImpl implements Version {
private int v;
VersionImpl(int v) {
this.v = v;
}
compareTo(Version other) {
return Integer.compare(v, ((VersionImpl)other) .v)
}
} AK
class VersionImpl implements Version {
private int v;
VersionImpl(int v) {
this.v = v;
}
compareTo(Version other) {
return Integer.compare(v, ((VersionImpl)other) .v)
}
} DC
class VersionImpl implements Version {
private int v;
VersionImpl(int v) {
this.v = v;
}
compareTo(Version other) {
return Integer.compare(v, ((VersionImpl)other) .v)
}
} PC
NG
Comparable<? extends Version> это не получится решить?PC
Comparable<? extends Version> это не получится решить?А
VP
Comparable<? extends Version> это не получится решить?B
class VersionImpl implements Version {
private int v;
VersionImpl(int v) {
this.v = v;
}
compareTo(Version other) {
return Integer.compare(v, ((VersionImpl)other) .v)
}
} А
А
А
A
A
А
PC
VP