I have a java project. this project is stock market monitoring system. our jop is to download the source of the html page using eclips. and i success to do that but the problem is how can i search from this source using java. and print the result of the search for the user.
please help me as soon as possible
thank you
this is my code
public class URLConnectionRe ader {
public static void main(String[] args) throws Exception {
URL DFM = new URL("http://www.dfm.ae/marketwatch/default.aspx");
URLConnection yc = DFM.openConnect ion();
BufferedReader in = new BufferedReader(
new InputStreamRead er(
yc.getInputStre am()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.prin tln(inputLine);
}}
please help me as soon as possible
thank you
this is my code
public class URLConnectionRe ader {
public static void main(String[] args) throws Exception {
URL DFM = new URL("http://www.dfm.ae/marketwatch/default.aspx");
URLConnection yc = DFM.openConnect ion();
BufferedReader in = new BufferedReader(
new InputStreamRead er(
yc.getInputStre am()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.prin tln(inputLine);
}}
Comment