public static void main(String[] args) { URL url; url = new URL("https://notepad-plus-plus.org/download/v7.5.4.html");is = url.openStream(); // throws an IOExceptionbr = new BufferedReader(new InputStreamReader(is));while ((line = br.readLine()) != null) System.out.println(line); } } { mue.printStackTrace(); } { ioe.printStackTrace(); } finally try {if (is != null) is.close();}catch (IOException ioe) }} |