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 DELIM = "`";

    /**
     * Packs name in `name` if name does not contain '`'
     * @param in name
     * @return `name`
     */
    public static String packDelim(String in) {
        if (in.contains(DELIM))
            return in;
        return DELIM + in + DELIM;
    }
}