SHARE
TWEET

Untitled

mmic162 May 24th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top