Complete the program below so that it prompts for a string of characters, prints out the last character of the string, followed by the first character of the string, followed the three middle characters of the string. You may assume that all the inputs string are of odd length and have at least five characters.

For example, if the user enters the string aforesaid, you should print

dares

Complete the following file:

StringGames.java

import java.util.Scanner; /** A program reads in a string, prints out the last character of the string, followed by the first character, and then followed by the middle three characters of the string. All input strings should be of odd length. */ public class StringGames { public static void main (String[] args) { // Display prompt for input string System.out.println("Please enter a string: "); // Read string Scanner in = new Scanner(System.in); String input = in.next(); // Put together new string and print // Your work here } }