Friends, I have a problem: I need to get each rows in a query with a loop. I saw a code in StackOverflow, but it does not work. Who knows how, please let me know.
Follow the code:
ResultSet rs = conn.prepareStatement("SELECT * FROM 'rankups'").executeQuery();
do {
String nick = rs.getString("nick");
String rank = rs.getString("rank");
UUID uuid = Bukkit.getOfflinePlayer(nick).getUniqueId();
Rankupbr.DATA_YAML.set(uuid.toString(), rank);
} while (rs.next());