private int getEngineCapacity() { string engineCapacityStr; ConsoleMsg.EngineCapacity(); do { engineCapacityStr = Console.ReadLine(); }while(!ValidationInput.CheckEngineCapacity(engineCapacityStr)); int result; int.TryParse(engineCapacityStr, out result); return(result); }