Ok so here's what I've come up with, but it's not compiling and I know it's because my syntax isn't correct, but alas, I can't figure out why. Also I know I know I don't have the "articles[selectedElement]" correct either. Greatly appreciate any insights into the error of my ways.
import java.util.*; //grants access to outside java utilities.
import java.util.Random;
public class RandomGeneratedSenteces {
public static void main (String[] args) { //start of program.
int i;
String[] articles= {"a", "the", "an"};
String[] noun1= {"cat", "dog", "sun", "rain", "boot"};
String[] verb= {"sit", "catch", "stab", "chase", "cuddle"};
String[] noun2= {"summer", "gun", "chair", "bag", "woman"};
Random r = new Random();
int selectedElement = r.nextInt(articles.length);
for (i=1; i<=10; i++)
{String[] randomSentence= articles[selectedElement] + noun1[selectedElement] + verb[selectedElement] + articles[selectedElement]+ noun2[selectedElement];
System.out.println ("sentence " + randomSentence);
}
}
}