hi,
a return statement is always associated with a method.
it is like you are giving raw material to a factory ,it processes
the raw materials and gives it back to you.
you can the sell it in the market or throw it away as your need be.
if you do not want the product back then tell them to sell it themselves!!!
in that case the method has a return type as void.
when you receive back the product( in the case of a method through a return statement like return(x);
or return 5;
or return "hello";etc
you have to have a place to dump it.
ie you need a variable to store the return value at the position where you call the method.
if your method is like this:
public String print()
{
return "hello";
}
then
you should have a statement like this at the place where you have called this print method
like this:
String s=print();
what happens here is that the print function returns "hello"
via the return statement in that method;
you store it in the varable s;
now you can you it as your program demands
hope this helps.
regards