public static double trainerLevelToMaxPokeLevel(int trainerLevel){
  return Math.min(trainerLevel + 1.5,40);
}

public static double trainerLevelToMaxPokeLevel ( int trainerLevel ) { return Math . min ( trainerLevel + 1.5 , 40 ) ; }
maximum pokemon level for a trainer , from the trainer level . that ' s usually trainerlevel + 1 . 5 , but the maximum is 40 ( http : / / pokemongo . gamepress . gg / power - up - costs ) .
