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 normalizeSetterName(String name) {
        if (name.startsWith("set_")) {
            return name.substring(4);
        } else if (name.startsWith("set")) {
            name = name.substring(3);
            return name.substring(0, 1).toLowerCase() + name.substring(1);
        } else if (name.startsWith("Set")) {
            return name.substring(3);
        } else {
            return name;
        }
    }
}