title: Quick Way Check Characters String
signature: class Solution {
  
      public Boolean quickWayCheckCharactersString(String s) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(String s, Boolean expected){
          try{
              Driver driver = new Driver();
              if (driver.run(s,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution("", true);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution("ggg", true);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution("11", true);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution("KoYIHns", false);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution("232", false);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution("10111000011101", false);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution("DDDD", true);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution("11", true);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution("11111", true);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution("ewJvixQzu", false);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(String s, Boolean expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(s),expected);
      }
      
      public boolean validateSolution(Boolean actual, Boolean expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
source_py: def quick_way_check_characters_string(s):
      n = len(s)
      for i in range(1, n):
          if (s[i] != s[0]):
              return False
      return True
source_cpp: bool quick_way_check_characters_string(string s) {
    int n = s . length ( );
    for ( int i = 1;
    i < n;
    i ++ ) if ( s [ i ] != s [ 0 ] ) return false;
    return true;
  }