January 19th, 2023, 10:25 AM
This is a very particular logic, that is, inserting at the end with possible removal at the start to keep the max length. There is no such thing in the Java SE framework (certainly not in...
January 17th, 2023, 04:24 AM
If you can use at least a Java/JDK 11 (or higher), then you can use the new Http Client API (package java.net.http). There is a quick introduction on the openjdk site: Introduction to the Java HTTP...
January 16th, 2023, 11:27 AM
Clearly, you have to make https calls to that Rest API. I don't know if that service already provides a Java "client" library for its Rest API. It would be (reasonably) easy to use. For what I can...
January 6th, 2023, 11:57 AM
Sorry for late answer but I regained the login on this forum only today.
Yes, you get a NullPointerException. And if you want to avoid this, there are some possibilities:
1) The classic...
January 4th, 2014, 11:24 AM
Create the Scanner object only one time ... not on every loop.