public static void print(File f)throws IOException
	{
		if(f.isDirectory())
		{
			File[] files = f.listFiles();
			for(int i = 0; i < files.length; i ++)
			{
				if(files[i].isDirectory())
				{
					print(files[i]);
					System.out.println(files[i]);
				}
				else
				{
					System.out.println(files[i].getName());
				}
			}
		}
	}

 

相关文章:

  • 2022-12-23
  • 2022-02-24
  • 2021-12-16
  • 2022-12-23
  • 2021-12-03
  • 2021-07-05
  • 2022-12-23
  • 2021-09-22
猜你喜欢
  • 2021-12-31
  • 2022-12-23
  • 2021-11-11
  • 2021-09-20
  • 2021-06-29
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案