Skip to content

Tag: java

Java: can’t use Map.Entry to iterate over a Map?

Every Java Map iteration example I’ve seen recommends this paradigm: However, when I attempt to do this I get a warning from my compiler: Here’s my code – the only wrinkle I see is that I’m iterating over an array of Map objects, and then iterating over the elements of the individual M…

While loop calculation issue

I’m currently working on a Java program (for school) that prints two statements when a user enters a starting balance for their account. So for example, if the user inputs $10,000, there will be two statements that print at the same time. One tells them how long it will take for their account to reach $…

Can run in Intellij, but jar file fails

Instead of running Quarkus, I’m running OptaPlanner through a Main class entry point in Kotlin. This works great within Intellij where I have a simple Run Configuration set up for it. However, when I create an Intellij artifact for a jar and try to run it, I get this: In solverConfig.xml I’m using…