Questions #17
Questions
#17
Replies: 4 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
broneill
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
In what form do you want the variable to be seen when the code is run? Just printed out? This will do that: |
Beta Was this translation helpful? Give feedback.
0 replies
-
The first solution worked, so yeah I don't need to get the value itself to then call the parseInt function. Thank you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, I have two questions,
Variable paramVar = handleMaker.param(idx).invoke("get", p.getName());
String paramValue = ???
For example, how do I call the Integer.parseInt function? Something like this:
ClassMaker cm = ClassMaker.begin().classLoader().loadClass("java.lang.Integer");
MethodMaker mm = cm.getMethod("parseInt", String.class);
Variable intParamVar = mm.invoke("parseInt", paramVar);
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions