Java tutorial
//package com.java2s; import android.widget.EditText; public class Main { public static boolean isZero(EditText input) { if (Double.parseDouble(input.getText().toString()) == 0) { return true; } return false; } }