Professional Documents
Culture Documents
F Insert
F Insert
F Insert
ArrayList;
import java.util.HashMap;
import java.util.Random;
int random() {
Random random = new Random();
if (arrayList.size() == 0) {
System.out.println("nothing is there to show");
return 0;
} else {
return arrayList.get(random.nextInt(arrayList.size()));
}
}
}