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.
/test/a.xmlファイルから内容を読み取る必要がありtest.jarます (もちろん、どちらも変数であり、定数ではありません)。それを行う最も簡単な方法は何ですか?
/test/a.xml
test.jar
File file = new File("test.jar"); String path = "/test/a.xml"; String content = // ... how?