Computer Science Canada
Methods
Author:
eNc
[ Wed Feb 23, 2005 9:06 pm ]
Post subject:
Methods
111
Author:
wtd
[ Wed Feb 23, 2005 9:56 pm ]
Post subject:
Kinda like:
code:
public class Test
{
private static String foo()
{
return "Foo!";
}
private static String greeting(String input)
{
return "Hello, " + input;
}
public static void Main(String[] args)
{
System.out.println(greeting(foo()));
}
}