//import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String original = "Abhinav dixit";
// Initialize empty string to store the reversed value
String reversed = "";
// Loop through the original string in reverse order
for (int i = original.length() - 1; i >= 0; i--) {
reversed += original.charAt(i); // Append each character
}
// Display the reversed string
System.out.println("Reversed string: " + reversed);
// Close the scanner
//scanner.close();
}
}