Hi people,
Can anyone give me some tips about my code?
Thank you in advance!
package com.codegym.task.task04.task0407;
/*
Cats in the Universe
*/
public class Solution {
public static void main(String[] args) {
Cat cat1 = new Cat();
cat1.count = 1;
Cat cat2 = new Cat();
cat2.count=2;
Cat.count++;
System.out.println("The cat count is " + Cat.count);
}
public static class Cat {
public static int count = 0;
}
}