Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jose Hughes   on Apr 21 In Java Category.

  
Question Answered By: Naomi Lee   on Apr 21

Okay, I'm an extreme newbie  as well, but I think I know your problem. In
order to run  a java  application, you have to have one method named
"main":

public static void  main(String[] args){
//do something, such as invoke your method above
}

It is okay to have a class  without a main  method, but only if you don't
try to invode that class directly (that is, you import it into other
code.)

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on NoSuchMethodError Or get search suggestion and latest updates.