There is also another problem in the second for loop
for (i = 0; i > id.length() - 3; i++)
even correcting it
for (i = 0; i < id.length() - 3; i++)
Type: Posts; User: Parranoia
There is also another problem in the second for loop
for (i = 0; i > id.length() - 3; i++)
even correcting it
for (i = 0; i < id.length() - 3; i++)
You should look up regular expressions. It will help you immensely with this.
Specifically, the matches method of the string class: matches(java.lang.String)
Regular Expressions: Pattern (Java...