I have the following called from a JSP page:
String setI1 = dimA1.getsetI1();
String setI2 = dimA1.getsetI2();
String setI3 = dimA1.getsetI3();
String setI4 = dimA1.getsetI4();
Is there a way I call call these dynically, like in a for loop similiar to this?
for ( int i = 1; i < 5; i++)
{
String setI + i = dimA1.getsetI + i();
}
I get the following when trying to do this:
Syntax error, insert "AssignmentOperator ArrayInitializer" to complete Expression
Thanks for any advice!
String setI1 = dimA1.getsetI1();
String setI2 = dimA1.getsetI2();
String setI3 = dimA1.getsetI3();
String setI4 = dimA1.getsetI4();
Is there a way I call call these dynically, like in a for loop similiar to this?
for ( int i = 1; i < 5; i++)
{
String setI + i = dimA1.getsetI + i();
}
I get the following when trying to do this:
Syntax error, insert "AssignmentOperator ArrayInitializer" to complete Expression
Thanks for any advice!