Ok this is a homework questions, but I cannot find the answer anywhere, not even in the book.
Path to Files If the user wants to specify a path for a file, the typical forward slash is replaced by __________________.
can you help?
Try using double back-slashes. (\\)
However, the more portable solution is to use File.separator, as described here.
By the way, "/" works on all platforms.