Under Windows:
File file = new File("C:\\TempFolder\\Images");
File file = new File("C:/TempFolder/Images"); // Because Windows soemtimes is nice.
Under Linux:
File file = new File("/TempFolder/Images");
The reason having two backslashes (\\), is that in strings a backslash must be escaped: \t being a tab character etcetera.
There are no drive letters in Linux, if that was your question. For temporary files you might use File.createTemporaryFile or createTemporaryDirectory.
Directories on other computers may also be used without drive letters, but with UNC paths:
Windows:
\\Server\Directory\Directory
"\\\\Server\\Directory\\Directory"
Linux:
//Server/Directory/Directory