This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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