Java tutorial
//package com.java2s; import android.widget.EditText; public class Main { /** * helper used to get text from EditText * * @param editText - consumes an EditText * @return- the stripped string of its contents */ public static String getText(EditText editText) { return editText.getText().toString().trim(); } }