Package ejava.examples.javase5
Class VarargsTest
- java.lang.Object
-
- ejava.examples.javase5.VarargsTest
-
public class VarargsTest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description VarargsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
sumArgs(int... values)
private int
sumArray(Integer[] values)
void
testVarargs()
-
-
-
Method Detail
-
sumArray
private int sumArray(Integer[] values)
-
sumArgs
private int sumArgs(int... values)
-
testVarargs
public void testVarargs()
-
-