BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the String:");
String str = br.readLine();//error: must be caught or declared
String reverseStr="";
for(int i=str.length()-1;i>=0;--i)
reverseStr += str.charAt(i);
System.out.println(reverseStr);
Should i include try catch block?