랑 비교 하는 법좀 알려줘


스트링문자랑 db값 비교하는 법좀 


if( count ==   rs.getString("a")  )    이건 안되고


if( count .equals(rs.getString("a")) ) 도 안되네요


뭐가 잘못된걸까