Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {

    public static CharSequence toLowerCase(CharSequence character) {
        if (character == null || character.equals("")) {
            return character;
        }
        StringBuffer buffer = new StringBuffer();
        for (int i = 0; i < character.length(); i++) {
            buffer.append(Character.toLowerCase(character.charAt(i)));
        }
        return buffer.toString();
    }
}