Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}