Java tutorial
//package com.java2s; /* * Copyright (c) 2011 Denis Solonenko. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ import android.text.TextUtils; public class Main { public static boolean isTransferCategory(String category) { return !TextUtils.isEmpty(category) && category.startsWith("[") && category.endsWith("]"); } }