public static String urlDecode(String str){
  try {
    return (URLDecoder.decode(str,"utf-8"));
  }
 catch (  Exception e) {
    return ("Decoding error");
  }
}

public static String urlDecode ( String str ) { try { return ( URLDecoder . decode ( str , "utf-8" ) ) ; } catch ( Exception e ) { return ( "Decoding error" ) ; } }
description of the method
