Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static String getEleString(String ele) { if (TextUtils.isEmpty(ele)) { return "-"; } return ele; } }