I usually work in Windows OS for my computer at home and use Linux for another computer at school. An annoying issue is that when I develop a Java application that reads a file or writes something into a file, I have to switch between forward slash and backslash if I take what I do at home to continue working at school. In Windows, backslash “\” is used for file path, but in Linux forward slash “/” is used.
To overcome this issue, Java programming language provides “File.separator” that will automatically be set to a forward slash in Linux and a backslash in Windows.
This is just a little trick that many people may overlook.