I'm working on a mac and I'm trying to specify the path to a file on my desktop.
I just did it like this: File file = new File("/users/desktop/sample.json");
When I tried running it I got a FileNotFoundException.
How do I correctly specify the path?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…