 <p>The symbol '>>' is an operator. The writer of the String class included this operator to only take primitive types and of course the String class type. </p> <p>You have two options:</p> <ol> <li>Convert the char array to a string</li> <li>Overload the '>>' operator to take char arrays and output it as you like</li> </ol> <p>Look up overloading operator if you really want to have fun.</p>