Here you can find the source of getTempDirectoryPath()
public static String getTempDirectoryPath()
//package com.java2s; //License from project: Apache License public class Main { public static String getTempDirectoryPath() { return System.getProperty("java.io.tmpdir"); }//from w w w . j a v a 2 s . c o m }