Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.*;

public class Main {
    private static List getMainProcessNames(List list) {
        ArrayList arraylist = new ArrayList();
        Iterator iterator = list.iterator();
        do {
            if (!iterator.hasNext())
                break;
            String s = (String) iterator.next();
            int i = s.indexOf(":");
            if (i > 0)
                arraylist.add(s.substring(0, i));
        } while (true);
        return arraylist;
    }
}