We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a493674 commit c2cd7a9Copy full SHA for c2cd7a9
JunitAndGenericsTaskTree/src/Junit_Less_8/main/java/GenericClasses/Zoo.java
@@ -30,6 +30,7 @@ public void add(T cat) {
30
https://github.com/JcoderPaul/JavaExtended-1-6/tree/master/Less_6_OOP_GenericsWildCard
31
*/
32
public int compare(Zoo<?> another) {
33
+ // Статический метод класса Float позволяющий сравнивать переменные float
34
return Float.compare(getWeightOfAllCatsInZoo(), another.getWeightOfAllCatsInZoo());
35
}
36
/*
0 commit comments