Good Day,
My program requires a function as such: I need to check for a string on the server, and if it was successful, it will return a boolean true, and modify data, and if not place an error message in data and return false. This is the C++ way of doing things.
boolean getStringFromServer(String& data)
However, I need to do this in Java. Take not, I am working in a highly multi threaded environment. I heard you can use StringBuffer to pass in data and modify it. Can I actually get an example code?