Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; public class Main { /** * This fucntion parse database id to retrieve UUID, Major and Minor * @param id * @return */ public static List<String> parseId(String id) { List<String> list = new ArrayList<String>(); StringTokenizer token = new StringTokenizer(id, "."); while (token.hasMoreElements()) { list.add((String) token.nextElement()); } return list; } }