Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String toStandart(final String name) {
        String result = name.replaceAll("([a-z\\d])([A-Z])", "$1-$2").replace('_', '-');
        result = result.toLowerCase();
        return result;
    }
}