public static String splitString(String str,String delimiter,int position){
  String[] stringArray=str.split(delimiter);
  return stringArray[position];
}

public static String splitString ( String str , String delimiter , int position ) { String [ ] stringArray = str . split ( delimiter ) ; return stringArray [ position ] ; }
util function to split the string and send the value at required position
