aspose file tools
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

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,
It is sorta covered in the JavaRanch Style Guide.
subject: Error in System.out.println()