File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Please Help me out... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Please Help me out...

RamaKrishna Ravuri
Greenhorn

Joined: May 13, 2007
Posts: 4
Hello,
I have two main methods like this...

public class MyClass{

public static void main(String []args){
System.out.println("In String");
}

public static void main(Character []args){
System.out.println("In Character");
}
}

Now I want to run this the following output ..like...
In Character then In String....

How is this possible...

Regards,
RV
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1088
A Duplicate of this.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Please Help me out... is not a useful topic, please help us to help you.

Java only provides a single execution point for a class. You can put them in two different classes, but the (Character []args) version will never be called, only the String version.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please Help me out...