Skip to content

Commit c2cd7a9

Browse files
committed
Edit Zoo.java
1 parent a493674 commit c2cd7a9

File tree

1 file changed

+1
-0
lines changed
  • JunitAndGenericsTaskTree/src/Junit_Less_8/main/java/GenericClasses

1 file changed

+1
-0
lines changed

JunitAndGenericsTaskTree/src/Junit_Less_8/main/java/GenericClasses/Zoo.java

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public void add(T cat) {
3030
https://github.com/JcoderPaul/JavaExtended-1-6/tree/master/Less_6_OOP_GenericsWildCard
3131
*/
3232
public int compare(Zoo<?> another) {
33+
// Статический метод класса Float позволяющий сравнивать переменные float
3334
return Float.compare(getWeightOfAllCatsInZoo(), another.getWeightOfAllCatsInZoo());
3435
}
3536
/*

0 commit comments

Comments
 (0)