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: Nicholas Wells   on Apr 21

Do you have a main  method or the Party constructor?

If you did it would look something like

class Party {
public static void  main(String[] args){
Party p = new Party();
p.buildInvite();
}

public Party(){
}

public void buildInvite(){}
}

Note that you don't actually need a constructor with no arguments, but I
find that it is good form to put them in until your brain positively
knows what is happening.

Also do you have the directory in question in the class  path, or failing
that "." in your classpath (. is the current directory).

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.