somebody can help me ?

I don't know why cant I write functions in java, its says:Illegal modifier for parameter f; only final is permitted

package matala2;

public class fun {

public static void main(String[] args) {
// TODO Auto-generated method stub
public static int f(int fa){

}
}

}
This is a C++ forum
I dont know where is the java forum.
You can google.
Topic archived. No new replies allowed.