How to split a string into slice in Golang

  • 15 May 2019
  • ADM

How to split a string into slice using Golang. For a simple split by a singular character you can use Split() method from strings package. For more complex rules the regexp.Split() method can be used.


How to convert a roman number in decimal in Java

  • 05 March 2018
  • ADM

How to convert a roman number in decimal in Java. The symbols used are I, V, X, C, D and M.


How to generate a random password in Java

  • 19 July 2017
  • ADM

How to generate a random password in Java. The algorithm uses a dictionary.


Java 8 Streams filter examples

  • 06 July 2017
  • ADM

Java 8 Streams filter examples. Simple examples comparing the classic approach pre-Java 8 and using the new Java 8 functionalities.


How to display folder tree structure in command line

  • 05 July 2017
  • ADM

How to see folder tree structure in command line using tree command.


SWT Button Selection Event

  • 05 June 2017
  • ADM

SWT Button Selection Event. A simple example using SelectionListener interface to add an event to a button.