title: How to check whether the path is relative or absolute in java?
body: <p>I am developing a tool, which takes a path of an <code>xml</code> file. Now that path can be either relative or absolute. Inside the code, when I have only a string, is there a way to identify that the path is absolute or relative?</p>