The code is executing the while-loop once and I can not see result of this statement: System.out.println(satir);
import java.io.*;
import java.net.*;
import java.lang.*;
import java.sql.*;
import java.util.regex.*;
import java.util.*;
public class Derlemeproblem{
public static void main(
String args[]) throws IOException
{
URL local = new URL("http://localhost/phpmyadmin/hey.html");
URLConnection baglanti = local.openConnection();
BufferedReader oku = new BufferedReader(new InputStreamReader(baglanti.getInputStream()));
try
{
String satir;
int u,boy;
char[] kelime = new char[2500];
boolean kucuk=false;
u=0;
while ((satir = oku.readLine()) != null)
{
u=satir.length();
boy=0;
if(u!=0&u!=-1)
{
while(boy<u)
{
kar=satir.charAt(boy);
if(kar=='<')
{
kucuk=true;
}
else if(kar=='>')
{
kucuk=false;
}
if(kucuk==false)
{
if (satir.charAt(boy+1)!='<')
{
kelime[boy]=satir.charAt(boy+1);
System.out.println("YAZ "+kelime[boy]);
}
else
{
kucuk=true;
boy=boy+1;
kelime[boy]=' ';
System.out.println("YAZ "+kelime[boy]);
}
}
boy=boy+1;
}
}
System.out.println(satir);
}
}
catch(Exception e)
{
// System.err.println ("Cannot connect to database server");
}
}
}