各种jar包下方法的使用

commons-codec-1.6.jar:

  DigestUtils.md5Hex(String str);

httpclient-4.2.2.jar:

  HttpClient client=new DefaultHttpClient();

  HttpGet get=new HttpGet(URL);

httpcore-4.2.2.jar:

  HttpResponse response=client.execute(get);

  EntityUtils.toString(response.getEntity());

org.json.jar:
  
  JSONObject obj=new JSONObject(String str);
  Object value=obj.get(key);
  JSONArray jsonArr=obj.getJSONArray(key);

  

原文地址:https://www.cnblogs.com/Wen-yu-jing/p/3552154.html