private static List < Object > getStringCase ( String str ) { List < Object > types = new ArrayList < Object > ( str . length ( ) ) ; for ( int i = 0 ; i < str . length ( ) ; i ++ ) { types . add ( Character . isUpperCase ( str . charAt ( i ) ) ) ; } return types ; }
Returns a list of Booleans of the same length as the input specifying whether each character was uppercase or not .