Вадик Павленко
Почему Эклипс жалуется? (java) Он жалуется на currentDepth
public class Fish extends Pet {
int currentDeph=0;
public int dive(int howDeep){
currentDepth=currentDepth + howDeep;
System.out.println("Няряю на глубину " +
+ howDeep + " футов");
System.out.println("Я на глубине "
+ currentDepth + " футов ниже уровня моря");
return currentDepth;
}
}