Why is my else{ } not working? No output. My if{ } is working perfectly fine. Help appreciated!
String s2 = "SELECT CCA FROM generatedchoices WHERE category='" + category + "' AND intensiveness='"+ intensiveness + "'";
rs2 = st.executeQuery(s2);
if(rs2!=null){
while (rs2.next()) {
ccalist.add(rs2.getString("CCA"));
}
}
else{
System.out.println("No combination!");
//JOptionPane.showMessageDialog(null, "No combination found!");
}