Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

compare java array values

boolean[] values = new boolean[4];

values[0] = true;
values[1] = false;
values[2] = false;
values[3] = true;

switch (Arrays.toString(values)) {
    case "[true, false, true, false]":
        break;
    case "[false, false, true, false]":
        break;
    default:
        break;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #compare #java #array #values
ADD COMMENT
Topic
Name
2+3 =