I've been using OpenAI's ChatGPT for
Java development for a while now. I'm using the free version but they also have a subscription available.
I've found I've got to work with GPT, that GPT by itself is insufficient. Debugging is typically your problem but once you point out the problematic code to GPT then it is usually able to patch the code in short order. GPT doesn't have access to a compiler so can't even get compilation error messages unless you provide them.
I was working on some code with GPT the other night and in an hour I was able to put together an app that probably would have taken me 2+ hours to complete by my self. This was code that I've created bits and pieces of in various projects over the years but I would have had to pause numerous times to reference Java APIs and occasional examples whereas GPT was able to throw the framework together in less than 30 seconds. The initial cut made use of anonymous classes and at some point I asked GPT to use lambdas in all places appropriate and it swept through all the code making the replacements. Unfortunately one lambda expression caused a compiler error which I passed on to GPT and GPT made the necessary corrections. There was one place where GPT couldn't come up with a formula for the size of one of the JPanels and I had to modify the code myself and give the code snippet back to GPT that added it to the app. Then there were the usual feature requests and refinements I asked GPT to add, and as long as my instructions were clear enough, GPT succeeded nicely.
So, not a perfect system, but I highly recommend working with AI and becoming familiar with it because that's the future, and you may find you learn things and save time.
P.S. I believe they also have a plug-in for Eclipse but it requires the GPT subscription.