.......Words to Sentence in JAVA .......
String [] arr= {"hello","How","are","You","??"};
System.out.println("The words are :\n");
for(String s:arr)
System.out.println(s);
//----------------------Form a sentence from those words==============
System.out.println("The sentence is :\n");
String joined = String.join(" ", arr);;
System.out.println(joined);