private boolean instanceVariableCorrectFormat(String name){
  return name.startsWith("m") && Character.isUpperCase(name.charAt(1)) && !name.contains("_")&& !name.contains("-");
}

private boolean instanceVariableCorrectFormat ( String name ) { return name . startsWith ( "m" ) && Character . isUpperCase ( name . charAt ( 1 ) ) && ! name . contains ( "_" ) && ! name . contains ( "-" ) ; }
check if an instance variable has the correct format ( camelcase and begin with ' m ' ) .
