Android String Copy copy(String original)

Here you can find the source of copy(String original)

Description

copy

Declaration

public static String copy(String original) 

Method Source Code

//package com.java2s;

public class Main {
    public static final String EMPTY = "";

    public static String copy(String original) {
        if (isEmpty(original))
            return EMPTY;
        return new String(original.toCharArray());
    }//  www.jav  a  2 s .com

    public static boolean isEmpty(String text) {
        return (text == null) || text.trim().equals("");
    }
}