I managed to get most AIs to generate C# code when I ask for Java stuff, so it is always a kind of template generator that still isn't quite there.

That's interesting. I use it mainly for C# and Javascript/Frontend stuff.

I wonder if it's because there are maybe millions of MSDN articles, but I don't know if a Java analog to MSDN exists.