View Single Post
Old 01-31-2009, 03:31 AM   PM User | #2
DELOCH
Regular Coder

 
DELOCH's Avatar
 
Join Date: Apr 2006
Location: Canada
Posts: 537
Thanks: 4
Thanked 2 Times in 2 Posts
DELOCH is an unknown quantity at this point
i'm not quite sure how it is suppose to return anything when you don't even call the function...

Code:
public class ReturnAllValues
{
    private String name = "Faith Hill";

    public static void main(String [] args)
    { 
        String myName = getName();
        System.out.println(myName);
    }
    public String getName()
    {
        return name;
    }
}
.... that is an example of a code that would 'return' the name

and what do you mean by 'return all the values'?
DELOCH is offline   Reply With Quote