Java - Getting file from same package

前端 未结 4 1591
甜味超标
甜味超标 2021-01-11 13:16

If I want to read from \"Words.txt\" which is in the same package as the class, how would I do this? Doing simply Scanner = new Scanner(new File(\"Words.txt\"));

4条回答
提交回复
热议问题