可以这样写!比如传出一个Int类型的值!
………………
public int med(datetype s)
{
  int x;
…………
  return x; 
}
这样就返回一个int类型的值了!