package test; import java.util.*; import java.util.concurrent.SynchronousQueue; import java.util.concurrent.locks.Lock; import javax.print.attribute.IntegerSyntax; import org.omg.CosNaming.NamingContextExtPackage.AddressHelper; import privateclass.*; import java.io.*; public class Main { private static final String space_operator = " "; public static void main(String[] args) throws Exception { Scanner scanner = new Scanner(new BufferedInputStream(System.in)); //PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); TreeMap<Character,Integer> hashMap = new TreeMap<Character,Integer>(); long time1 = System.currentTimeMillis(); = String String "dsddd SDZ --gdfg the dbx"; the Properties MES = System.getProperties (); for (int I = 0; I <String.length (); I ++) { Integer valueInteger = HashMap.get (String.charAt (I)); (! Character.isAlphabetic (String.charAt (I))) IF Continue; COUNT. 1 = int; IF (! valueInteger = null) { COUNT = valueInteger +. 1; } hashMap.put (String.charAt (I), COUNT); } System.out.println (hashMap '); // time acquisition time is from the time 1970 Long TIME2 = System.currentTimeMillis (); System.out.println (TIME2 - TIME1); / * * get system information * / / * for (Object name: mes.keySet ()) { System.out.println (name + "::" + mes.getProperty ((String) name)); } * / / * * get newline system used directly newline for different system * / Final LINE_SEPARATOR String = System.getProperty ( "line.separator"); System.out.println ( "the Hello" + LINE_SEPARATOR + "Word"); / * * may set up their own system properties * / System.setProperty ( "MyClass", "tiantian"); } }