Here you can find the source of getTempFolderPath()
public static String getTempFolderPath()
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { public static String getTempFolderPath() { String tempPath = System.getProperty("java.io.tmpdir"); if (tempPath.endsWith(Character.toString(File.separatorChar))) { tempPath = tempPath.substring(0, tempPath.length() - 1); }/*from w w w . j a va 2s . c om*/ return tempPath; } }