Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows マシンで \someip\somedirectory と言うコンテンツを共有しましたが、Unix Box で実行され、共有フォルダーのコンテンツを読み取る Java でプログラムを作成したいと考えています。
File file=new File(directoryPath); if(file.isDirectory()) returns false.
したがって、私は最初のステップ自体に失敗しています。どうすればそれができるか提案してください。
returnの代わりに使用する必要がありますreturns。
return
returns
File file=new File(directoryPath); if(file.isDirectory()) return false;