Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.ArrayList;

public class Main {
    /**
     * It removes the first character of all the elements of the input ArrayList<String>
     * @param ar input array to be modified
     * @return the input array without the first character '/t'
     */
    public static ArrayList<String> extractT(ArrayList<String> ar) {
        for (int i = 0; i < ar.size(); i++) {
            ar.set(i, ar.get(i).substring(1));
        }

        return ar;
    }
}