Interfaces in Golang
Interfaces are collections of method signatures. A interface type can hold any value that implements those methods. The empty interface is an interface type that specifies zero methods. A type assertion provides access to an interface underlying concrete value. Two interfaces are equal if they have equal concrete values and identical dynamic types, or if both are nil.
Java 8 Streams filter examples
Java 8 Streams filter examples. Simple examples comparing the classic approach pre-Java 8 and using the new Java 8 functionalities.
How to create tiny HTTP server in Java
How to create tiny HTTP server in Java using ServerSocket class.
Enum examples in Java
Enum examples in Java. Simple enum usage. How to convert String to Enum object. Enum object with fields and methods.
How to compare dates in Java
How to compare dates in Java using Date (compareTo, before, after, equals), Calendar(before, after, equals) and LocalDate(isBefore, isAfter, equals) classes.
Client Server Socket example in Java
Client Server Socket example in Java. Client example reading the input from the console. Simple echo server example.