Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Log;

public class Main {
    public static String split(String str, String delimiter, int idx) {
        String retStr = "";
        try {
            String[] arr = str.split(delimiter);
            retStr = arr[idx];
        } catch (Exception e) {
            Log.e("SHUtil.split", e.getMessage());
        }
        return retStr;
    }
}