Question: errors, 100% Start over - 2. Complete this program so that it prints the given word with the first and last character interchanged. For example,

errors, 100% Start over - 2. Complete this program so that it prints the given word with the first and last character interchanged. For example, if word is tool, then produce loot". Words.java 2 import java.util.Scanner; public class Words 5 6 public static void main(String[] args) 7 8 Scanner in = new Scanner(System.in); 9 String word = in.next(); 10 11 System.out.println(word); 12 } 13 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
