Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * Parse an IDREF, which means, currently,
     * to remove the trailing "#" if any.
     * @param idref
     * @return the parsed String
     */
    public static String parse(String idref) {

        if (idref.startsWith("#")) {
            idref = idref.substring(1);
        }

        return idref;

    }
}