Oh duh... I forgot about that. Add the keyword 'static' to your method signatures
public static double cube(double value)
public static double square(double value)
the static keyword means you...
Type: Posts; User: helloworld922
Oh duh... I forgot about that. Add the keyword 'static' to your method signatures
public static double cube(double value)
public static double square(double value)
the static keyword means you...
haha, i wasn't reading carefully :)
it should be this:
// get the value squared
double squared = square(entry);
// print it out
...
Simple, in fact you're already calling a few methods in your code. They just happen to be methods you didn't write :)
The general from:
method_name(method_parameters)
method_name is the name...