Hellfire103@lemmy.ca to Programmer Humor@programming.devEnglish · 5 months agoTIFU by not using objects in my object-oriented programming courseworklemmy.caimagemessage-square28fedilinkarrow-up175arrow-down13cross-posted to: programmerhumor@lemmy.mltifu@lemmy.world
arrow-up172arrow-down1imageTIFU by not using objects in my object-oriented programming courseworklemmy.caHellfire103@lemmy.ca to Programmer Humor@programming.devEnglish · 5 months agomessage-square28fedilinkcross-posted to: programmerhumor@lemmy.mltifu@lemmy.world
minus-squareschema@lemmy.worldlinkfedilinkarrow-up2·5 months agoIs 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).
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).