I do not understand why the code in this try block does not execute. I get a compilation error that says when I use these variables after the try block, they may not be initialized.
double star, planet, posLife, actLife, intelLife, comm, length;
try{
star = Double.parseDouble(factor.elementAt(0).getText());
planet = Double.parseDouble(factor.elementAt(1).getText());
posLife = Double.parseDouble(factor.elementAt(2).getText());
actLife = Double.parseDouble(factor.elementAt(3).getText());
intelLife = Double.parseDouble(factor.elementAt(4).getText());
comm = Double.parseDouble(factor.elementAt(5).getText());
length = Double.parseDouble(factor.elementAt(6).getText());
} catch(NumberFormatException E){
System.err.println("NumberFormatException");
}