it says that it cannot resolve symbol?
but "maks" has been returned back.. No, the value of maks has been returned, not maks itself. If you want to do something with that value, you have to store it like this:
double x = finnMaks(f);
There's another problem here:
String stringMaks = Double.parseDouble(maks);
Double.parseDouble() makes a double from a string, this is not what you want - you really want the opposite, and I'm not sure but it has to be something like this:
Double d = new Double(x);
String stringMaks = d.toString();
HTH
[ April 13, 2004: Message edited by: Tobias Hess ]