Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private final static String SMALLTALK_TEMPLATE_PREFIX = "Smalltalk ";

    public static String getTemplateShortName(String templateName) {
        if (templateName.startsWith(SMALLTALK_TEMPLATE_PREFIX)) {
            return templateName.substring(SMALLTALK_TEMPLATE_PREFIX.length());
        }
        return templateName;
    }
}