Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package readdata;
- import java.net.*;
- import java.io.*;
- import java.util.regex.Pattern;
- import java.util.regex.Matcher;
- public class aaa
- {
- public static void main(String[] args) throws Exception {
- URL oracle = new URL("http://redpanel.bugged.ro/complaints/staff/");
- BufferedReader in = new BufferedReader(
- new InputStreamReader(oracle.openStream()));
- String inputLine;
- StringBuilder a = new StringBuilder();
- while ((inputLine = in.readLine()) != null)
- a.append(inputLine);
- in.close();
- int i = 0;
- Pattern p = Pattern.compile("Open");
- Matcher m = p.matcher( a );
- while (m.find()) {
- i++;
- System.out.println(i);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement