Originally posted by: Skiguy411
I am suppose to write a public method named multiply which accepts two doubles multiplies them, and returns a double.
I'm just starting to learn java and so I'm exactly sure how to write that.
Originally posted by: Tu13erhead
Read your book? Use class notes? Ask a professor? Google?
Originally posted by: purbeast0
wow that is fvcking pathetic. i really really hope for your sake that your major has nothing to do with computers at all, as in, you will never ever touch a computer while on your job after you have a degree.
Originally posted by: Skiguy411
Originally posted by: purbeast0
wow that is fvcking pathetic. i really really hope for your sake that your major has nothing to do with computers at all, as in, you will never ever touch a computer while on your job after you have a degree.
Errmm....we all have to start out somewhere don't we?
Exactly! If you're going to copy-paste answers this one will impress the professor more with its variety of responses and attention to detail.Originally posted by: tfinch2
public static double multiply(double a, double b)
{
double c = a * b;
if (c > 0)
return c;
else
system.exit(0);
return c;
}
This is the best example. Don't listen to these noobs.![]()