Reading from a URL
intValue = myURLContent.read();
while (intValue != -1) {
System.out.print((char) intValue);
intValue = myURLContent.read();
}
myURLContent.close();
}
catch (Exception e) {
System.out.println("Error while opening URL");
}
} // end main
} // end class
Previous slide
Next slide
Back to first slide
View graphic version