import java.util.StringTokenizer; public class hellojava { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub StringTokenizer st=new StringTokenizer("11/02/2010","/"); while(st.hasMoreTokens()) { System.out.println(st.nextToken()); } } }