Hey, I'm trying to make a simple function that returns a value according to what was chosen by the user in a text field.
So it's something like this:
Thanks for any help, in advance...Code:float getModifier(JList list[])
{
int selected = list[?].getSelectecValue( ); //Obviously gives a compiler error, don't know how to pass the index into the function correctly
switch(selected)
case 1:
return blahblahblah
//etc...etc..
}
