emptying/clearing an array
public void removePlayers(Player client)
String G = "";
for (int i = 0; i < numPlayers; ++i)
G = G + client[i];
JOptionPane.showMessageDialog(null, G, "Player Info", 1);
i have set up this fubction as i want to clear all the data in the array. the info is all brought forward with the string and i want to be able to clear this wen sent back.
either code or a button that will be able to clear this will work. i have ran into so many walls and cannot solve it.
any help will be gretfully accepted,