假设我有这个字符串:并且我需要在另一个类中生成一个类?请任何人对此提出建议?**
String sourceCode = "public class Test { " +
"public void myMethod(@Mandatory String s){"+
"System.out.println( \"myMethod : \"+s);}"+
"@SuppressWarnings(\"unused\")"+
"private void mySecondMethod(String s2){"+
"System.out.println(\"mySecondMethod : \"+s2);}"+
"}";