Java tutorial
//package com.java2s; import java.util.*; public class Main { public static String getFieldName(Vector vtNameStack) { StringBuffer strFieldName = new StringBuffer(); for (int iIndex = 0; iIndex < vtNameStack.size(); iIndex++) { strFieldName.append('.'); strFieldName.append((String) vtNameStack.elementAt(iIndex)); } if (strFieldName.length() > 0) strFieldName.delete(0, 1); return strFieldName.toString(); } }