1)
String str = "Hello";
String result = "";
for(int i = str.length()-1; i>=0; i--){
result += str.charAt(i); // first solution, charAt method
// result += str1.substring(i, i+1); // first solution, substring method
}
System.out.println(result);
}