title: How to send an array to a method from specific location
body: <p>Here is an example of what I'm looking for:</p>
  
  <pre><code>  public static void main(String[] args) {   
      if(args.length&gt;2){ print(args.getArrayFromIndex(2)); }
      else { print(args); }
    }
  
    public static void print(String... list){
      for(String str : list){ System.out.println(str); }
    }
  </code></pre>
  
  <p>I want to know if there is some build-in method for that or the only option is to create new array from index 2 and sent it</p>