Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Varargs {
- public void test() {
- test1(10);
- // test1(10,20);
- }
- // private void test1(int i, int j) {
- // TODO Auto-generated method stub
- //}
- public void test1(int j,int...i) {
- // TODO Auto-generated method stub
- }
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- new Varargs().test();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement