public static Name anyCamel(String... pieces){
  List<NamePiece> namePieces=new ArrayList<>();
  for (  String piece : pieces) {
    validateCamel(piece,CheckCase.NO_CHECK);
    CaseFormat format=CaseFormat.LOWER_CAMEL;
    if (Character.isUpperCase(piece.charAt(0))) {
      format=CaseFormat.UPPER_CAMEL;
    }
    namePieces.add(new NamePiece(piece,format));
  }
  return new Name(namePieces);
}

public static Name anyCamel ( String ... pieces ) { List < NamePiece > namePieces = new ArrayList < > ( ) ; for ( String piece : pieces ) { validateCamel ( piece , CheckCase . NO_CHECK ) ; CaseFormat format = CaseFormat . LOWER_CAMEL ; if ( Character . isUpperCase ( piece . charAt ( 0 ) ) ) { format = CaseFormat . UPPER_CAMEL ; } namePieces . add ( new NamePiece ( piece , format ) ) ; } return new Name ( namePieces ) ; }
creates a name from a sequence of camel strings .
