static public String populateVehicleDetails(Vehicle vehicle){
String returnString = new String()
String existingString = "Chevy Uplander "
String nl = "\n"
...
Type: Posts; User: javaDruide
static public String populateVehicleDetails(Vehicle vehicle){
String returnString = new String()
String existingString = "Chevy Uplander "
String nl = "\n"
...
Thanks, I coded the first one and I was asked to change to the second by lead programmer (according to him that shoul simplify my code?!) I coded like that because as you said vehicle.Company is...
I'll try to simplify:
if(vehicle.Company==G){
if( vehicle.Collisions==-1 and (vehicle.Cost==null or vehicle.CurrentValue==null)){
throwError(GMessage)
What is the most efficient code?
Writen like this:
if(vehicle.Branch.UWCompanyCode==typekey.UWCompanyCode.TC_CGIC){