You can do the same with Streams:
Map<String, String> dic = Files.lines(Paths.get(AlphabetFile))
.map(l -> l.split("="))
.collect(Collectors.toMap(s -> s[0].trim(), s -> s[1].trim()));
1
solved Need java equivalent of this c# code [duplicate]