This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Error in System.out.println() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Error in System.out.println()" Watch "Error in System.out.println()" New topic

Error in System.out.println()

Ken Sampson
Ranch Hand

Joined: Sep 26, 2007
Posts: 45

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


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.

Ken Sampson
balajee annamalai
Ranch Hand

Joined: May 09, 2007
Posts: 31
Please refer thefollowing link for your doubts,
I agree. Here's the link:
subject: Error in System.out.println()
It's not a secret anymore!