Here you can find the source of removeMethodsOption(String[] args)
Parameter | Description |
---|---|
args | The args from a main method. |
public static String[] removeMethodsOption(String[] args)
//package com.java2s; /****************************************************************************** * Copyright (c) 2007 Stefan Franke, Robert Hanussek, Benjamin Keil, * * Steffen Kie?, Johannes Langauf, * * Christoph Marian M?ller, Igor Podolskiy, * * Tilmann Scheller, Michael Starzmann, Markus Wittlinger * * All rights reserved. This program and the accompanying materials * * are made available under the terms of the Eclipse Public License v1.0 * * which accompanies this distribution, and is available at * * http://www.eclipse.org/legal/epl-v10.html * ******************************************************************************/ import java.util.ArrayList; public class Main { /**/*from ww w . j a v a2s . c om*/ * Searches in args for the String {@value #METHODS_OPTION} and removes it. * * @param args The args from a main method. * * @return The args Array without the String {@value #METHODS_OPTION}. */ public static String[] removeMethodsOption(String[] args) { ArrayList list = new ArrayList(args.length); for (int i = 0; i < args.length; i++) { list.add(args[i]); } return (String[]) list.toArray(new String[list.size()]); } }