Relative Content

Tag Archive for javaintellij-idea

Unable to create java class

hi sorry im very new to java and intellij. I cloned work from github and it does not allow me to create a class within the folders (the 1-9 named ones), i right click -> new and it doesnt show the create java class option. any help would be very much appreciated
enter image description here

File Not found error in intellij idea but the program throws no error when I compile and run it on terminal

try (FileReader fr = new FileReader(“note.txt”)){ int letters = fr.read(); while(fr.ready()) { System.out.println((char)letters); letters = fr.read(); } System.out.println(); } catch (IOException e) { System.out.println(e.getMessage()); } when I run from Intellij idea: I got: note.txt (No such file or directory) but I compiled it and ran it on the terminal, the program reads from the file […]