| 23 | .collect(Collectors.toMap(x->x.substring(0,x.indexOf(" ")), x->x.substring(x.indexOf(" ")+1))); |
| 24 | |
| 25 | private static Stream<String> getLines(String dataFile){ |
| 26 | InputStream inputStream =Base.class.getResourceAsStream( |
| 27 | "/"+Base.class.getPackage().getName().replace(".", "/")+"/DATA/"+dataFile+".dat"); |
| 28 | BufferedReader br= new BufferedReader(new InputStreamReader(inputStream,StandardCharsets.UTF_8)); |
| 29 | return br.lines(); |
| 30 | } |
| 31 | public static boolean has_cc(String index,String mainZd,String[] otherZd){ |
| 32 | String cce=""; |
| 33 | if (Base.CCE.containsKey(mainZd)){ |