(String[] a,String[] b)
| 24 | return new BufferedReader(new InputStreamReader(inputStream,StandardCharsets.UTF_8)).lines(); |
| 25 | } |
| 26 | public static boolean intersect(String[] a,String[] b){ |
| 27 | if (a!=null && a.length>0 && b!=null && b.length>0){ |
| 28 | for (String x : a){ |
| 29 | for(String y : b){ |
| 30 | if (x.equals(y)){ |
| 31 | return true; |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | return false; |
| 37 | } |
| 38 | public static Set<String> Intersect(String[] a,String[] b){ |
| 39 | Set<String> s=new HashSet<String>(); |
| 40 | if (a!=null && a.length>0 && b!=null && b.length>0){ |