package com.fqs.test; public class hello { public static void main(String[] args) { //需求:求商场每个季度的营业额 获得整年的营业额 System.out.println("getSum:"+getSum(1,2,3,4)); } public static int getSum(int a,int b,int c,int d){ int sum = a + b + c + d; return sum; } }
标签:return,求和,int,getSum,static,66,public From: https://www.cnblogs.com/haha1988/p/17463059.html