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 getSetterName(String fieldName) {
        if (fieldName == null || fieldName.length() == 0)
            return "";

        String first = String.valueOf(fieldName.charAt(0));
        first = first.toUpperCase();
        return "set" + first + fieldName.substring(1);
    }
}