Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * @author vshetty2
     *
     * Mar 17, 2016
     */
    private static String removelastcommachar(String _str) {
        if (_str.endsWith(",")) {
            return _str.substring(0, _str.length() - 1);
        } else {
            return _str;
        }
    }
}