/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package testdebug; import java.io.File; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author martin */ public class StepInto { public static void main(String[] args) { try { File f = File.createTempFile("foo", "fee"); boolean is = isAbsolute(f); is = (f != null) && f.isAbsolute(); System.err.println("Temp file is absolute = "+is); } catch (IOException ex) { Logger.getLogger(StepInto.class.getName()).log(Level.SEVERE, null, ex); } System.err.println("END."); } private static boolean isAbsolute(File path) { return (path != null) && path.isAbsolute(); } }