Advertisement
mmic162

Untitled

May 24th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public class Varargs {
  2. public void test() {
  3. test1(10);
  4. // test1(10,20);
  5. }
  6.  
  7. // private void test1(int i, int j) {
  8. // TODO Auto-generated method stub
  9.  
  10. //}
  11.  
  12. public void test1(int j,int...i) {
  13. // TODO Auto-generated method stub
  14.  
  15. }
  16.  
  17. public static void main(String[] args) {
  18. // TODO Auto-generated method stub
  19. new Varargs().test();
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement