Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static final String reg = "_sooglejay_";

    public static String getName(String tagStr) {
        String[] array = tagStr.split(reg);
        if (array != null && array.length > 0) {
            return array[0];
        } else {
            return "";
        }
    }
}