public static void main(String[] args) throws HttpException, IOException, JSONException{
	    	String result=HttpConnect.getBodyGET("https://api.weibo.com/2/statuses/friends_timeline.json?access_token="+CommonData.access_token+"&count=100");
	    	//System.out.println(result);
	    	JSONObject jsonObject = new JSONObject(result);
	    	JSONArray array = new JSONArray(jsonObject.getString("statuses"));
		     int count=0;
		     Map<String,Integer> map = new HashMap<String, Integer>();
		     for(int i =0;i<array.length();i++){
		    	 JSONObject object= array.getJSONObject(i);
			     String source =  object.getString("source");//微博内容
			     String key = null;
					key=source;
					Integer n = null;
					n=map.get(key);
					if(n==null){
						n=1;
					}else{
						n++;
					}
					map.put(key, n);
			     count++;
		     }
		     
		     ArrayList<Entry<String,Integer>> l = new ArrayList<Entry<String,Integer>>(map.entrySet());     
		     Collections.sort(l, new Comparator<Map.Entry<String, Integer>>() {     
		    	   public int compare(Map.Entry<String, Integer> o1, Map.Entry<String, Integer> o2) {     
		    	                return (o2.getValue() - o1.getValue());
		    	                }  
		    	   });   
		     for(Entry<String,Integer> e : l) {   
		         System.out.println(e.getKey() + "::::" + e.getValue());   
		        }  
		     
		     System.out.println("total = "+count);
	}