formula.CaclulateForce(a,b));
Typo should be
formula.CalculateForce(a,b));
Type: Posts; User: Freaky Chris
formula.CaclulateForce(a,b));
Typo should be
formula.CalculateForce(a,b));
No farm from it, but I'm very confused as to what you are trying to achieve and how you are trying to d it
Chris
You can't have global variables defined within a function
class Force{
public int mass;
public int acceleration;//is that right?
public Force(double a, double b){
}...
class Force{
public Force(double a, double b){
// some code here
}
}//end of class
Theres a basic class called force, with a constructor to match your call...
What is savitchIn defined as? (post all your code) that way I can see your Force class too.
You can edit your posts too, and please you code tags [ code ] [ /code ] ( without spaces :P )
Chris
Ye I don't have a problem with that.
I never mind helping.
Chris
You are honestly telling me you can't do that. The information is there, and it would have been the first thing you were taught on your course. I have no problem helping people, but you are showing...
Scanner sin = new Scanner(System.in);
double m = sin.nextDouble();
double a = sin.nextDouble();
System.out.println("F = " + (m*a) );