import java.net.URL; import java.util.Scanner; public class SimpleWebInput { public static void main(String[] args) throws Exception { URL mURL = new URL("http://llhscp-jgs.neocities.org/Projects/Printing/9.html"); Scanner webIn = new Scanner(mURL.openStream()); String one; while(webIn.hasNext()) { one = webIn.nextLine(); System.out.println(one); } webIn.close(); } }Picture of the output
![]()