Here you can find the source of trim(String[] args)
public static String[] trim(String[] args)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { public static String[] trim(String[] args) { return (String[]) Arrays.copyOfRange(args, 1, args.length); }/*from w w w . j a v a2 s. c om*/ }