I have a String that holds the value of an ID number from a query that I am parsing into an Integer. I need a FOR loop that checks everytime a certian number appears in the query more than five times. I am displaying this imformation on a JSP page. So far I have:
while (rs1.next()){
String TicketNumber = rs1.getString("XXXXX_XXXXX_NO");
String MUID = rs1.getString("XXXXXX_XXXX");
String Name = rs1.getString("XXXXXXX_XXXXX_NAME");
String LastName = rs1.getString("XXXXX_XXXX_NAME");
int PIDM = Integer.parseInt(MUID);
for ( int n = 0, n >= 5, n += 1 )
rs1 is the statment that I am quering and I am setting these values, parsing out the MIUD into PIDM but I am not quite sure wher eto go from there. Any help would be greatly appreciated. Thanks