In my code, I\'m asking the user to input three different values divided by a blank space. Then, those three different values I would like to assign them to three different
Double#parseDouble(str) expects a string,and you are trying to pass a character.
try this:
newHeight = Double.parseDouble(newDimensions.subString(1));