In Java, how can I test if an Array contains a certain value?
2013-09-05 16:42
465 查看
public static final String[] VALUES = newString[]{"AB","BC","CD","AE"};
Arrays.asList(VALUES).contains("BC");
Referer: http://stackoverflow.com/questions/1128723/in-java-how-can-i-test-if-an-array-contains-a-certain-value
Arrays.asList(VALUES).contains("BC");
Referer: http://stackoverflow.com/questions/1128723/in-java-how-can-i-test-if-an-array-contains-a-certain-value
相关文章推荐
- 009:How can I test if an array contains a certain value?
- How to Check if an Array Contains a Value in Java Efficiently?---reference
- How to Check if an Array Contains a Value in Java Efficiently?
- How to Check if an Array Contains a Value in Java Efficiently?
- Checking if an array contains a value in C#
- 论文笔记-How universal can an intelligence test be?
- How do you check if a variable is an array in JavaScript? [duplicate]
- How do I sort an array of hashes by a value in the hash?
- How can I convert a floating-point value to an integer in C?
- 053-23 How can you reverse the effects of an ALTER DISKGROUP … DROP DISK command if it has not yet c
- Given an array t[100] which contains numbers between 1..99. Return the duplicated value
- Can only modify an image if it contains a bitmap
- How to combine the value of multiple hashes within an array by the same key
- How can I check if one string contains another substring in JavaScript?
- How to limit an array of similar hashes to those that have more than one of the same key:value pair
- How can I combine elements of an array that have a common element?
- Test if a given element name exists in an array Tcl tk
- How do you test if an NSString is empty
- How can you tell if you have an antique Tiffany lamp?
- How can I convert a floating-point value to an integer in C?