[JAVA] I was addicted to the roll method

The roll method of the Calendar class specifies which part of the date to change in the first argument and the change value in the second argument.

If there is a variable with 4/1 set, what happens to the value of the variable when it is executed with "day" as the first argument and "-1" as the second argument of the roll method?

It is likely to be 3/31 because the day goes back one day, but it will actually be 4/30.

With the add method, it seems to be 3/31.

Recommended Posts

I was addicted to the roll method
I was addicted to the Spring-Batch test
I was addicted to the NoSuchMethodError in Cloud Endpoints
I was addicted to the record of the associated model
I was addicted to starting sbt
What I was addicted to when introducing the JNI library
I was addicted to looping the Update statement on MyBatis
I was addicted to the setting of laradock + VSCode + xdebug
What I was addicted to with the Redmine REST API
The story I was addicted to when setting up STS
I was addicted to rewriting to @SpringApplicationConfiguration-> @SpringBootTest
About the matter that I was addicted to how to use hashmap
I was addicted to the API version min23 setting of registerTorchCallback
I was addicted to installing Ruby/Tk on MacOS
I was addicted to doing onActivityResult () with DialogFragment
[Rails] I was addicted to the nginx settings when using Action Cable.
A story I was addicted to when testing the API using MockMVC
Problems I was addicted to when building the digdag environment with docker
Recorded because I was addicted to the standard input of the Scanner class
I was addicted to scrollview because I couldn't tap the variable size UIView
[CircleCI] I was addicted to the automatic test of CircleCI (rails + mysql) [Memo]
I was addicted to unit testing with the buffer operator in RxJava
I was addicted to not being able to connect to AWS-S3 from the Docker container
I was a little addicted to the S3 Checksum comparison, so I made a note.
I want to call the main method using reflection
[Rough commentary] I want to marry the pluck method
The part I was addicted to in "Introduction to Ajax in Java Web Applications" of NetBeans
A memorandum because I was addicted to the setting of the Android project of IntelliJ IDEA
What I was addicted to while using rspec on rails
I was addicted to setting default_url_options with Rails devise introduction
I want to expand the clickable part of the link_to method
I want to use the sanitize method other than View.
A story I was addicted to in Rails validation settings
I was addicted to using Java's Stream API in Scala
How to use the link_to method
How to use the include? method
The story I wanted to unzip
Android memo-I was addicted to Permission
Was that so, the user_signed_in? method
[Circle CI] A story I was addicted to at Start Building
A note when I was addicted to converting Ubuntu on WSL1 to WSL2
I tried to understand how the rails method "redirect_to" is defined
What I was addicted to when implementing google authentication with rails
I tried to understand how the rails method "link_to" is defined
[Java] I tried to make a maze by the digging method ♪
I was able to deploy the Docker + laravel + MySQL app to Heroku!
Technical causes and countermeasures for the points I was addicted to with the first Android app & Kotlin
What I was addicted to when updating the PHP version of the development environment (Docker) from 7.2.11 to 7.4.x
I want to know the Method of the Controller where the Exception was thrown in the ExceptionHandler of Spring Boot
I tried to summarize the methods used
[Ruby] From the basics to the inject method
[Rails] How to use the map method
[Java] How to use the toString () method
I tried to implement the Iterator pattern
I tried to summarize the Stream API
I went to the Java Women's Club # 1
Why was the code painful to read?
A memo that was soberly addicted to the request of multipart / form-data
My.cnf configuration problem that I was addicted to when I was touching MySQL 8.0 like 5.7
I was addicted to a simple test of Jedis (Java-> Redis library)
I was a little addicted to running old Ruby environment and old Rails