Recently I have been programming with the api stream that appeared with the api java8 to have fun, learn something and maintain the form, because I’ve been on a medical leave for a while. The program consists of dealing with collections of numbers using different structures, like LinkedHashMap, Hashset, Set, etc. The idea was to […]
Recientemente he estado programando con la api stream que apareció con la api java8 para divertirme, aprender algo y mantener la forma, debido a que llevo un tiempo en una baja médica. El programa consiste en tratar con colecciones de números usando diferentes estructuras, como LinkedHashMap, Hashset, Set, etc… La idea era poder mostrar una […]
Good companions, I wanted to share something that surely we have all had to face, to count the number of apparitions of the words in a file.Imagine you have a file with the following content: Using a unix script like the one below: Have fun! Alonso.
Recently I’ve been playing with this api and wanted to share with you a GitHub repository with the resulting code. The code is quite explanatory and I will update it with more unit tests. Postdata 1 How good it was for me to learn scala before knowing the functional style in java. Postdata 2 At […]
Lately, I like to stop by Quora to answer questions as far as I can humbly answer and to follow recommendations and other views on my hobbies. Today I found a topic that I found interesting, an algorithm called Aho-Corasick, used to find patterns in a text. You may be thinking, for that we already […]
Good morning, a couple of months ago I started a demo for a project that I have been thinking about for a long time, how to use technology to help find habitable planets that are in star systems, moving around their companion star. Something not very ambitious, the truth. For this I had thought to […]
Hi, you may have encountered the problem of having to use different java virtual machines in osx, either because apple currently installs jdk8 by default and you want to try jdk9 or jdk10, or because you want to compile something with openjdk or the official oracle jdk. The fact is that I found a program, […]