public List<Integer> getUsersByAddress(String theAddress)
{
List<Integer> result = new ArrayList<Integer>();
try{
String sql = "SELECT userID from lab4.ChirpUsers where address=?";
PreparedStatement st = connection.prepareStatement(sql);
st.setString(1, theAddress);
ResultSet rs = st.executeQuery();
while(rs.next()){
Integer userId = rs.getInt(1);
result.add(userId);
}
}catch(SQLException e){
e.
{
List<Integer> result = new ArrayList<Integer>();
try{
String sql = "SELECT userID from lab4.ChirpUsers where address=?";
PreparedStatement st = connection.prepareStatement(sql);
st.setString(1, theAddress);
ResultSet rs = st.executeQuery();
while(rs.next()){
Integer userId = rs.getInt(1);
result.add(userId);
}
}catch(SQLException e){
e.