Hi Javars,
Can anyone explain to me, wherein have I done wrong?
As far as I understood the task, I have to implement the code within addNewCat block, unfortunately, this is the best solution I've implemented so far.
Please, help.
package com.codegym.task.task04.task0404;
/*
Cat register
*/
public class Cat {
private static int catCount = 0;
private int amount;
public static void addNewCat() {
Cat cat = new Cat();
cat.amount = catCount++;
}
public static void main(String[] args) {
}
}