랑 비교 하는 법좀 알려줘
스트링문자랑 db값 비교하는 법좀
if( count == rs.getString("a") ) 이건 안되고
if( count .equals(rs.getString("a")) ) 도 안되네요
뭐가 잘못된걸까
랑 비교 하는 법좀 알려줘
스트링문자랑 db값 비교하는 법좀
if( count == rs.getString("a") ) 이건 안되고
if( count .equals(rs.getString("a")) ) 도 안되네요
뭐가 잘못된걸까
count는 스트링변수야.
디버거를 모르면 rs.getString("a")랑 count를 콘솔 프린트해서 봐라