Here you can find the source of isAbsolute(String path)
public static boolean isAbsolute(String path)
//package com.java2s; //License from project: Apache License import java.nio.file.Path; import java.nio.file.Paths; public class Main { /**/*from w w w .j ava 2s. com*/ * @see Path#isAbsolute() */ public static boolean isAbsolute(String path) { return toPath(path).isAbsolute(); } /** * @see Paths#get(String, String...) */ public static Path toPath(String path) { return Paths.get(path); } }