import java.util.*; class IndexData { private char id; private Vector child; private Vector address; public IndexData( char name) { child = new Vector(); address = new Vector(); id = name; } public char getID() { return id; } public void setID(char id) { this.id = id; } public void addChild(IndexData id) { child.addElement(id); } public IndexData getChild() { return (IndexData)child.get(0); } public void addAddress(String str) { address.addElement(str); } public String getAdress() { return (String)address.get(0); } public IndexData search(char c) { for(int i=0; null != child.get(i);i++) { if( ((IndexData)child.get(i)).getID() == c) { return (IndexData)child.get(i); } } return null; } public static void main(String args[]) { IndexData dat = new IndexData('‚¤'); System.out.println(dat.getID()); } }