• @schema
    link
    16 hours ago

    Is the class declared static? I assume the “…ic class Answer07” at the top stands for “public class Answer07”.

    I don’t think java supports top level static classes (it does have nested static classes, though).