java方法返回多个值

89 阅读1分钟

返回一个数组

public double[] getBH(){
	double temp[] = {base, height};
	return temp;
}