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.Arrays;

import java.util.List;

public class Main {
    private static List<List<String>> split(String wordListsString) {
        List<List<String>> result = new ArrayList<List<String>>();
        for (String wordString : wordListsString.split(" ")) {
            result.add(splitOne(wordString));
        }
        return result;
    }

    private static List<String> splitOne(String wordString) {
        return Arrays.asList(wordString.split("#"));
    }
}