want to select my my from java gui program not from web : this is my php code checker code for java application but i want to scan a new file in my java GUI program...

    enter code here:
public class test {
    public static void main(String[] args) throws MalformedURLException, IOException {
            URL u = new URL("http://www.example.com/my/php/doc.php");
            URLConnection c = u.openConnection();
            InputStream r = c.getInputStream();
            BufferedReader reader = new BufferedReader(new InputStreamReader(r));
            for (String line;
                (
                    line = reader.
                    `enter code here`
                    readLine()) != null;
            )
                System.out.println(line);