Java: Format Dates with DateTimeFormatter
Java provides an extensive API for handling date and time. In this article, we'll use Java's DateTimeFormatter to format dates - LocalDate, LocalDatetime, LocalTime and ZonedDateTime. Before formatting dates, you'll have to know How to Get the Current Date and Time in Java. Format Specifiers Date and time format specifiers...
Java: Format Dates with SimpleDateFormat
Java provides an extensive API for handling date and time. In this article we'll use Java's SimpleDateFormat to format dates. Before formatting dates, you'll have to know How to Get the Current Date and Time in Java. Format Specifiers Date and time format specifiers are used for constructing patterns to...
How to Use the grep Command on GNU/Linux
Grep is a powerful, yet very simple tool. By default, it searches through an input and prints a single or multiple lines that contain text matched to a pattern specified in the command call. Before grep became such a widespread tool for the GNU/Linux system, it used to be...
Minimax with Alpha-Beta Pruning in Python
Way back in the late 1920s John Von Neumann established the main problem in game theory that has remained relevant still today: Players s1, s2, ..., sn are playing a given game G. Which moves should player sm play to achieve the best possible outcome? Shortly after, problems of this kind...