import java.io.BUfferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.TOException;
import java.util.treeMap;
public class test
{
public static TreeMap<Character,Integer>Pross(string str)
{
chae[] charArray=str.toCharArray();
TreeMap<Character,Interger>tm=new TreeMap<Character,Interger>();
for(int x=0;x<charArray.length;x++)
{
tm.put(charArray[x],1);
}
else
{
int count=tm.get(charArray[x])+1;
tm.put(charArray[x],count);
}
}
return tm;
}
public static void main(string[] args)
{
BufferedReader br=null;
int line=0;
}
原文:http://www.cnblogs.com/shuailu/p/5986378.html