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
Try something like this:
newDimensions = JOptionPane.showInputDialog(...
newDimensions = newDimensions.trim();
String arr[] = newDimensions.split(" ");
double darr[] = new double[arr.length];
for(int i=0;i
There are still some defensive issues that can be taken. Doing a trim on your parse double is kind of critical.