This task should be so easy, so who can tell me what is wrong?
package com.codegym.task.task15.task1518;
/*
Static modifiers and kittens
*/
public class Solution {
static {
Cat cat = new Cat();
cat.name="rufus";
System.out.println(cat.name);
}
public static class Cat {
public String name;
}
public static void main(String[] args) {
}
}