Java is like this:
String text = "a line of text";
String splits[] = text.split(" ");
System.out.println(splits[1] + " " + splits[4]);
Result:
A text
I'm not a noob but I'm not a pro so I would like an explanation along with it, but it's not necessary as I am quite good at figuring things out.











