import java.util.Scanner; public class ReverseWord { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Enter a word: "); String word = scanner.nextLine(); int length = word.length(); String reversedWord = ""; for (int i = length - 1; i >= 0; i--) { reversedWord += word.charAt(i); } System.out.println("Reversed word: " + reversedWord); scanner.close(); } } //(Char can covert to string using += and Need to create String variable first = "";)