I got a String[] from which I want to get a random value. I try to put that logic in another method. This is my code so far.
public static void main(String[]args) {
String [] S = {"aaa", "bbb", "ccc", "ddd", "eee","ggg", "hhh", "iii", "kkk"};
}
public String get () {
int i;
for(i = 0; i <= 4; i++) {
}
}
I need random strings out of array S with the method get(), but I really don't know how to do it.