点击file选中project Structure或者Ctrl + Shift + Alt + S 弹出框后选中Modules,点击src然后点击上面的Sources 这就ok了。右击就有java class 选项了。