please tell me how to display a list of users in the form user@localhost, otherwise I display only the user's nickname
public List<String> listUser(String value, List<String> list) throws SQLException {
String query = MessageFormat.format("SELECT {0} FROM {1}.user", value, this.name);
ResultSet resultSet = getConnect().createStatement().executeQuery(query);
while (resultSet.next())
list.add(resultSet.getString(value));
return list;
}