}catch(IOException e) { System.out.println("Error in opening connection 2"); }finally { try { if (in!=null) in.close(); if (hc!=null) hc.close(); }catch (IOException e) {} } }