G
Guest
How can I write this in Java?
void change(string &s) {}
and how can I write this in Java?
void change(string s) {}
Because all Object in Java are passed by reference in functions, the
following Java code is equal to 1st C++ code, up.
void change(String s) {}
but with a test, I discover that this code is equal to 2nd C++ code.
Any help?
Thanks!
void change(string &s) {}
and how can I write this in Java?
void change(string s) {}
Because all Object in Java are passed by reference in functions, the
following Java code is equal to 1st C++ code, up.
void change(String s) {}
but with a test, I discover that this code is equal to 2nd C++ code.
Any help?
Thanks!