Here you can find the source of prepend(String clang, List
private static List<String> prepend(String clang, List<String> args)
//package com.java2s; import java.util.*; public class Main { private static List<String> prepend(String clang, List<String> args) { try {//from w w w . j av a2s . c om args.add(0, clang); return args; } catch (Exception e) { ArrayList<String> commands = new ArrayList<String>(args.size() + 1); commands.add(clang); commands.addAll(args); return commands; } } }