assume that I have this String : and i need to generate a class of it inside another class ? Kindly any one have a suggestion for this ?**
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);}"+
"}";