Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in System.out.println()

 
Ken Sampson
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I get an error when I try to do the following:

System.out.println(null);

The compiler throws an error at the null part.

But when I check the error, it says

The method println(char[]) is ambiguous for the type PrintStream.

But I know that one of the signatures for println() is

System.out.println(Object x);

Then why can't this be right. Please help me.
 
balajee annamalai
Ranch Hand
Posts: 31
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic