This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hello. Thanks for everyones assistance on this problem. Again, I am working on making two modifications to the program. The first is to Ignore cases, which I have successfully completed. The second is to Use a command-line argument. I have utilized suggestions on using the command-line argument into the program and have implemented them into my program. My program compiles, but I get the following error message when I run the application: Exception in thread "main" java.lang.NoSuchMethodError: main. Could anyone offer any more suggestions or insight on this. Thanks. Here is my code before using the command-line argument:
Here is my code after using a command-line argument, which I get the NoSuchError method when trying to run the application.
[ October 12, 2003: Message edited by: Troy Johnson ] [ October 12, 2003: Message edited by: Troy Johnson ]
Actually the second code does not compile, because the main() method is in Palindrome class and it was declared with default access modifier. Instead you have your problem class declared as public. You should declare your Palindrom class as public instead of problem.