Hi guys, I've hit a problem I'm hoping someone can help me with. I'm trying to create a little irc bot application, just to learn how to use sockets in Java.
Everything works fine so far up to the point where I try to pass the data coming from the socket to a class variable. I can do a System.out.println() within the main while loop which reads data from the socket, and see everything in the console, but when i try to pass that same data to a variable outside of the loop i get nothing.
The same happens if i try to use setters and getters. I can do a System.out.printl() on the data being passed to the setter, but the getter returns nothing.
Does anyone have any idea what could be causing this? I'm completely stumped.