Java tutorial
//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; } }