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.
Update implements Jakarta EE 11 platform and brings support for Jakarta Data repositories and virtual threads.