View Single Post
  #2 (permalink)  
Old 01-31-2008, 03:58 AM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,266
hardwired is on a distinguished road
"Exception in thread "main" java.lang.nosuchmethoderror
This means that the jvm (java virtual machine) could not find a main method in the class.
Code:
public static void main(String[] args) { // Use JOptionPane.showInputDialog here new AmicablePairs(25); }
Reply With Quote