File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

Please Help me out...

RamaKrishna Ravuri

Joined: May 13, 2007
Posts: 4
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
In Character then In String....

How is this possible...

Anupam Sinha
Ranch Hand

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

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:
subject: Please Help me out...
It's not a secret anymore!