How to generate bytecode and save to .class file?
问题 I have the following weird requirement. I am given: A list of some method names. Names and types of parameters of the above methods. The functionality of the above methods. This is as follows: For each parameter, the method converts it to string using toString and obtains an array of strings. To this array, the method applies a function foo . The function foo takes as input a String [] type and outputs String . The methods return what foo returns. foo 's code is given inside a Java object and