Java tutorial
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static int checkModel_1(List<String> list, String[] s) { for (int j = 0, len2 = list.size(); j < len2; j++) { String ss[] = list.get(j).split(","); for (int k = 0; k < ss.length; k++) { for (int m = 0; m < s.length; m++) { if (s[m].equals(ss[k])) { return 1; } } } } return 0; } }