SEI
GitHub
CERT Secure Coding
  • Home
  • SEI CERT Oracle Coding Standard for Java
    • Front Matter
    • Rules
    • Recommendations
      • Characters and Strings (STR)
        • STR50-J. Use the appropriate method for counting characters in a string
        • STR51-J. Use the charset encoder and decoder classes when more control over the encoding process is required
      • Concurrency (CON)
      • Declarations and Initialization (DCL)
      • Exceptional Behavior (ERR)
      • Expressions (EXP)
      • Input Output (FIO)
      • Input Validation and Data Sanitization (IDS)
      • Methods (MET)
      • Miscellaneous (MSC)
      • Numeric Types and Operations (NUM)
      • Object Orientation (OBJ)
      • Platform Security (SEC)
    • Back Matter
    • Admin

Characters and Strings (STR)

  • STR50-J. Use the appropriate method for counting characters in a string
  • STR51-J. Use the charset encoder and decoder classes when more control over the encoding process is required

RecommendationsSTR50-J. Use the appropriate method for counting characters in a string
SEI
  • www.cmu.edu

© 2026 Carnegie Mellon University

  • Legal
  • Privacy Policy