Answers for "how to get a url in java"

0

java get html from url

URL oracle = new URL("http://www.oracle.com/");
        BufferedReader in = new BufferedReader(
        new InputStreamReader(oracle.openStream()));

        String inputLine;
        while ((inputLine = in.readLine()) != null)
            System.out.println(inputLine);
        in.close();
Posted by: Guest on June-24-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language