wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Error in System.out.println()" Watch "Error in System.out.println()" New topic
Author

Error in System.out.println()

Ken Sampson
Ranch Hand

Joined: Sep 26, 2007
Posts: 45
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.


Ken Sampson
balajee annamalai
Ranch Hand

Joined: May 09, 2007
Posts: 31
Please refer thefollowing link for your doubts,

http://www.javaranch.com/maha/Discussions/Operators_and_Assignments/Statements_-_JavaRanch_Big_Moose_Saloon.htm
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in System.out.println()