字符串方法总结

  String[] arg1
  String[] str = (String[]) arg1; 
  String firstValue = str[0]; 
   // 分割字符串的类 
  StringTokenizer st = new StringTokenizer(firstValue, ",");

  
  char[] codeUnits = Character.toChars(value);
   char value1 = (char) Integer.parseInt(args[0], 16);
char value2 = (char) Integer.parseInt(args[1], 16);
if (!Character.isSurrogatePair(value1, value2)) {
System.err.println("Not a surrogate pair");
return;
}

File outfile = new File("out");
BufferedWriter writer = new BufferedWriter(new FileWriter(outfile));
String text = ""; // repeat until all lines are read
while ((text = reader.readLine()) != null) {
String reverseText = "";
for (int i = 0; i < text.length(); i++) {
reverseText += Character.reverseBytes(text.charAt(i));
}
writer.append(reverseText + "\n");
}
BlockingDeque queue=new LinkedBlockingDeque();;

你可能感兴趣的:(字符串)