[JAVA] I tried to express the result of before and after of Date class with a number line

Since the results of before and after of the Date class were subtly difficult to understand if they were sentences, I tried to express it with a number line.

Below, both base and arg are Date type. base.before(arg) before1.png after1.png

base.after(arg) before2.png after2.png

Result: Easy to understand!

Recommended Posts

I tried to express the result of before and after of Date class with a number line
Let's express the result of analyzing Java bytecode with a class diagram
I tried to measure and compare the speed of GraalVM with JMH
I want to recursively get the superclass and interface of a certain class
I tried to summarize the basics of kotlin and java
I want to call a method and count the number
I tried JAX-RS and made a note of the procedure
I tried to solve the problem of "multi-stage selection" with Ruby
I tried to build the environment of PlantUML Server with Docker
I tried to check the operation of gRPC server with grpcurl
I tried to summarize the methods of Java String and StringBuilder
I tried to take a look at the flow of Android development environment construction with Android Studio
I tried to summarize the key points of gRPC design and development
I tried to visualize the access of Lambda → Athena with AWS X-Ray
<java> Split the address before and after the street address with a regular expression
After all I wanted to preview the contents of mysql with Docker ...
I tried to create a LINE clone app
I tried to break a block with java (1)
I checked the number of taxis with Ruby
I want to control the start / stop of servers and databases with Alexa
I tried to implement a function equivalent to Felica Lite with HCE-F of Android
What I tried when I wanted to get all the fields of a bean
I tried to compare the infrastructure technology of engineers these days with cooking.
I tried to automatically generate a class to convert from a data class to a Bundle with APT
I tried to clone a web application full of bugs with Spring Boot
[Beginner] I tried to decorate the bar after displaying the details of the hamburger menu
I tried to make a program that searches for the target class from the process that is overloaded with Java
I tried to create a shopping site administrator function / screen with Java and Spring
I want to call a method of another class
I tried to read and output CSV with Outsystems
I tried to summarize the state transition of docker
I tried to create a log reproduction script at the time of apt install
I tried to decorate the simple calendar a little
05. I tried to stub the source of Spring Boot
[Beginner's point of view] I tried to solve the FizzBuzz problem "easily" with Ruby!
I started MySQL 5.7 with docker-compose and tried to connect
I tried to reduce the capacity of Spring Boot
Pass arguments to the method and receive the result of the operation as a return value
Sazae-san's rock-paper-scissors I tried to verify the theoretical value and the measured value of the probability of the same hand 5 consecutive times with Ruby
I tried to investigate the mechanism of Emscripten by using it with the Sudoku solver
I tried to make a web application that searches tweets with vue-word cloud and examines the tendency of what is written in the associated profile
I want to find the MD5 checksum of a file in Java and get the result as a string in hexadecimal notation.
Let's implement a function to limit the number of access to the API with SpringBoot + Redis
I tried to make a product price comparison tool of Amazon around the world with Java, Amazon Product Advertising API, Currency API (2017/01/29)
[VBA] I tried to make a tool to convert the primitive type of Entity class generated by Hibernate Tools to the corresponding reference type.
I tried to make the sample application into a microservice according to the idea of the book "Microservice Architecture".
I tried to develop a web application from a month and a half of programming learning history
I want to get a list of the contents of a zip file and its uncompressed size
[Rails 6.0, Docker] I tried to summarize the Docker environment construction and commands necessary to create a portfolio
[For Swift beginners] I tried to summarize the messy layout cycle of ViewController and View
Easy to make LINE BOT with Java Servlet Part 2: I tried image messages and templates
I tried to create a java8 development environment with Chocolatey
I tried adding a separator line to TabLayout on Android
I tried to modernize a Java EE application with OpenShift.
I tried to increase the processing speed with spiritual engineering
I tried to collect and solve Ruby's "class" related problems.
[Rails] I tried to create a mini app with FullCalendar
Command to check the number and status of Java threads
I tried to verify this and that of Spring @ Transactional
[Swift] I tried to implement the function of the vending machine
I want to make a list with kotlin and java!