String 常用 API、Text Block 与字符串处理 | JavaSE

本章覆盖:length、charAt、substring;indexOf、lastIndexOf、contains;startsWith、endsWith;equals、equalsIgnoreCase、compareTo;replace、split、trim、strip;大小写转换与空白判断;Text Block 多行字符串;常见文本解析与清洗思路。

本章知识点

  • length、charAt、substring
  • indexOf、lastIndexOf、contains
  • startsWith、endsWith
  • equals、equalsIgnoreCase、compareTo
  • replace、split、trim、strip
  • 大小写转换与空白判断
  • Text Block 多行字符串
  • 常见文本解析与清洗思路