Welcome to the Treehouse Community
Looking to learn something new?
Greg Hesp1,808 Points
Is there an issue with the challenge?
I have this running on my device successfully and working, however using the same code with adjusted variables for the challenge does not seem to work. The error given is:
JavaTester.java:74: responseData is already defined in run() String responseData = new String(charArray); ^ 1 error
Unfortunately, I do not have a line 74 and run isn't defined in my code, so I can only assume this is something in the background?
Mark Josephsen8,803 Points
If responseData is already defined, it means you have already created a String object with that name. Strings are immutable, meaning you can't change them once you've defined them. So, instead of changing the existing String object, you'll need to create a new String object with the same name:
responseData = new String(charArray);