Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.text.TextUtils;

public class Main {
    public static String getInputIsEmpty(String str) {

        if (TextUtils.isEmpty(str)) {
            return "0";
        } else if (".".equals(str)) {
            return "0";
        } else {
            return str;
        }
    }
}