COBOL is in the headlines again, and this time it is because of artificial intelligence (AI) – sparking conversations with tools emerging that claim t.
Write a Java program to get the strings as input from the user and push them to an array. Find the shortest word in the list of strings and display the same on the screen.