>Is declaring the variables in the parameters the same as just as declaring them in the method and if so then what's the point of using parameters?
They're not the same. The key difference is that variables declared as parameters can (and will) have their values set by the caller. For instance, if I have a method:
public static void blah(int n)
{
System.out.println(n+1);
}
then I could call it from some other part of the program like this:
blah(68093);
and the following would be printed to the console:
68094
See? The blah() method itself never stated that 68093 value; but because n was a parameter, the caller could pass 68093, and the method did its business with n being equal to that number. I could have passed any other number, and the behavior would have changed accordingly.
>And does the return method print out the result or just store it in memory to be called at a later time.
return is not a method, it is a statement. It does not print out the result, it just passes the result value back to the caller. The result value is only read if the caller treats the method call like an expression. For instance, if I have a method:
public static int qwer(int n)
{
return ((n*3)-1);
}
and elsewhere in the program I called it like this:
qwer(5);
then the return value would be lost (and indeed, the call would be useless, because in this case qwer() only does a local computation and does not interact with any data in any way other than by returning a value). However, I could say something like:
int a=qwer(5)+4;
System.out.println(a);
and the following would be printed to the console:
18
See how that works? Once qwer() completed (with n equal to 5), the result (which was 14, of course) was added to 4, and then that 18 was assigned as the value of a. The entire purpose of the return statement is to facilitate this sort of usage.
Technically speaking, Java has enough features that we could simulate the behavior of the return statement using other techniques, and make an entire program out of void methods. But it is simpler and easier to use return.