如何得到到当前路径

sysman 2003-01-14 09:19:47
JAVA 如何得到到当前路径
...全文
61 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
hanty 2003-01-14
  • 打赏
  • 举报
回复
getCodeBase()
bluesmile979 2003-01-14
  • 打赏
  • 举报
回复
getCodeBase()
helpall 2003-01-14
  • 打赏
  • 举报
回复
new File("").getAbsolutePath()
cypeng 2003-01-14
  • 打赏
  • 举报
回复
File f = new File(".");
String mypath = f.getAbsolutePath();
String mypath1 = f.getPath();

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧