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

<p>Currently i am using a flag to identify whether the path is relative or absolute, but i need to get rid of that.</p>

<p>Regards.</p>
