Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static String[] lineToStrs(String line) {
        String[] ret = new String[2];
        if ((line != null)) {
            String[] strs = line.trim().split("\t+");
            ret[0] = strs[0].trim();
            for (int i = 1; i < strs.length; i++) {
                String str = strs[i].trim();
                if (!str.isEmpty()) {
                    if (!str.startsWith("#")) {
                        ret[1] = str;
                    }
                    break;
                }
            }
        }
        return ret;
    }
}