is EditText Input Equal To - Android User Interface

Android examples for User Interface:EditText

Description

is EditText Input Equal To

Demo Code


//package com.java2s;

import android.widget.EditText;

public class Main {
    public static boolean isInputEqualTo(EditText editText, double input) {

        if (Double.parseDouble(editText.getText().toString()) == input)
            return true;

        return false;

    }/* w  ww . j ava  2  s.c  o m*/
}

Related Tutorials