An array of string objects, words, has been properly declared and initialized. each element of words contains a string consisting of lowercase letters (a–z).

write a code segment that uses an enhanced for loop to print all elements of words that end with "ing". as an example, if words contains {"ten", "fading", "post", "card", "thunder", "hinge", "trailing", "batting"}, then the following output should be produced by the code segment.

fading

trailing

batting

Solved
Show answers

Ask an AI advisor a question