As Dan has just pointed out.. You have made a common Java mistake.
if(string[y]=="0000")
should be
if(string[y].equals("0000"))
It's worth reading the link he posted.
Type: Posts; User: JavaPF
As Dan has just pointed out.. You have made a common Java mistake.
if(string[y]=="0000")
should be
if(string[y].equals("0000"))
It's worth reading the link he posted.