Java uses the createnewfile() method to report an error

Java uses the createNewFile() method to detect errors

Alt +enter: Auto throw exception

error disappeared

Read More: