This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler 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 Make it so: Java DB Connections & Transactions this week in the JDBC 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!