Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SimpleMath {
- public void getUrl(String a) throws IOException{
- URL b = new URL(a);
- BufferedReader in = new BufferedReader(new InputStreamReader(b.openStream()));
- String inputLine;
- while((inputLine=in.readLine())!=null)
- System.out.println(inputLine);
- String s = inputLine;
- in.close();
- if(s.contains("div")){
- System.out.println("BEGIN");
- }
- }
- public static void main(String[] args) throws IOException {
- SimpleMath sm = new SimpleMath();
- sm.getUrl("http://oracle.com");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement