Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static String getImage_400(String url) { return getImageType(url, "!v400"); } public static String getImageType(String url, String type) { if (TextUtils.isEmpty(url)) { return null; } return url.concat(type); } }