回 帖 发 新 帖 刷新版面

主题:[讨论]请教下各位

请教下各位,使用JAVA载入一张图,那图要放在哪个文件夹里啊,请知道的回答下,谢谢!

回复列表 (共3个回复)

沙发

老问题了哦.
就放在:
System.out.println(new File(".").getAbsolutePath());
这个目录下面.

板凳

[quote]老问题了哦.
就放在:
System.out.println(new File(".").getAbsolutePath());
这个目录下面.[/quote]

Why?

You can put anywhere you want, and as long as you know where it is.

3 楼

The common practice is to make an "img" directory, put all your image files under that directory.

我来回复

您尚未登录,请登录后再回复。点此登录或注册