MCPcopy Create free account
hub / github.com/OpenDRG/DRG_Java / intersect

Method intersect

drg_group/quanzhou_2023/Base.java:26–37  ·  view source on GitHub ↗
(String[] a,String[] b)

Source from the content-addressed store, hash-verified

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){

Callers 15

groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected