I am writing a code which is generating .java and .xml files dyanamically.
For xml files I am using javax.xml.parsers.DocumentBuilderFactory .
My xml files are generating correctly but I have some queries regarding genrerating .java files.
I want to create a java file which will have some methods and variables.
Is there any way to do this?
Is there any java classes or libraries to do this?