主题:[讨论]请教下各位
雨后初晴
[专家分:0] 发布于 2008-01-23 18:06:00
请教下各位,使用JAVA载入一张图,那图要放在哪个文件夹里啊,请知道的回答下,谢谢!
回复列表 (共3个回复)
沙发
daifei4321 [专家分:2590] 发布于 2008-01-23 22:16:00
老问题了哦.
就放在:
System.out.println(new File(".").getAbsolutePath());
这个目录下面.
板凳
justforfun626 [专家分:18460] 发布于 2008-01-24 12:42:00
[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 楼
justforfun626 [专家分:18460] 发布于 2008-01-24 12:44:00
The common practice is to make an "img" directory, put all your image files under that directory.
我来回复