今天在写一个程序的时候,需要知道程序当前工作所在的目录,查找了一个 JAVA 类库,没有找到相应的方法,于是在网上找了一下,找了一种方法:

File file = new File("t.tmp");
String fullpath = file.getAbsolutePath();

相关文章:

  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2021-08-01
相关资源
相似解决方案