Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
An inner class can't have static methods. https://www.quora.com/Why-can’t-inner-class-methods-be-static-in-Java Remove static of your method void in() then it works.
15th Sep 2019, 5:45 PM
Denise Roßberg
Denise Roßberg - avatar