Pm
Why did I get /kicked for asking my question in a private message?
The channel is a public forum and most people there want to learn Java, or want to help others to learn Java. Your chances of getting a meaningful answer are better if you ask the channel and wait for responses. If nobody replies, chances are that the person doesn't know the answer.
If you send an unsolicited question to a particular user that person may not know the answer and you're cutting the chances of getting a meaningful reply.
Last, it's common courtesy to ask politely before interrupting a person with a private request. Ask first if you can start a private conversation, and 99% of the time the other person will say 'yes'.