Bookmark Topic Watch Topic
  • New Topic

Please Help me out...

 
RamaKrishna Ravuri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 1090
  • Mark post as helpful
  • send pies
  • Report post to moderator
A Duplicate of this.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic