java question
question is inside the comment under codings. No need to explainrest of codings
package xxxxx;
public class xxxx {
public static void main(String[] args) {
int num1 = 5;
int num2 = 10;
int num3 = 15;
int num4 = 20;
int num5 = 25;
System.out.printf(“Total is : %d%n”,SumOfNumbers(num1, num2));
System.out.printf(“Total is : %d%n”,SumOfNumbers(num1, num2, num3));
System.out.printf(“Total is : %d%n”,SumOfNumbers(num1, num2, num3, num4));
System.out.printf(“Total is : %d%n”,SumOfNumbers(num1, num2, num3, num4, num5));
}
public static int SumOfNumbers(int…varNums) // why is it … ?This is new to me. it would give error if I change those dots.
PayPal Gateway not configured
PayPal Gateway not configured