标签:stackoverflow问题精选 array-contains
Arrays.asList(...).contains(...)
String[] fieldsToInclude = { "id", "name", "location" };
if ( ArrayUtils.contains( fieldsToInclude, "id" ) ) {
// Do some stuff.}
【Stackoverflow好问题】java中,如何判断数组Array是否包含指定的值
标签:stackoverflow问题精选 array-contains
原文地址:http://blog.csdn.net/lizeyang/article/details/40296537