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'?