I have a program where I am inputing a character through an FTP connection. The character is located in the byte in[0]. I am converting it to a
string using the String.valueOf.
I want to continue receiving characters until I receive a colon (
For
testing, I wanted to print out the received character with the System.out.println statemet.
The problem is the compare is not working. It prints the value of the colon character as well as all other characters. What am I doing wrong?