Address Integer().toString() and Double().toString() warnings.

This commit is contained in:
Neil 2020-03-16 15:24:50 -07:00 committed by Daniel Williams
parent 65a4698d37
commit 0f01a9c437

View File

@ -94,7 +94,7 @@ public class Variable {
@Override
public String toString(){
if ( arrayValue.length > 1 ){
String out = name + " is Array (length " + new Integer(arrayValue.length).toString() + ") : {";
String out = name + " is Array (length " + arrayValue.length + ") : {";
for (double x : arrayValue){
out = out + x + ",";
}
@ -102,7 +102,7 @@ public class Variable {
return out + "}";
}
else{
return name + " is double : {" + new Double(doubleValue).toString() + "}";
return name + " is double : {" + doubleValue + "}";
}
}
}