Java tutorial
//package com.java2s; //License from project: Apache License import android.text.TextUtils; public class Main { public static boolean isStatusOk(String status) { return TextUtils.isEmpty(status) || "ok".equalsIgnoreCase(status); } }