• Post Reply Bookmark Topic Watch Topic
  • New Topic

please help needed

 
Fatima Waqar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please correct this code out for me...


 
Nitin Surana
Ranch Hand
Posts: 129
Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is NotACodeMill. What is the problem?
 
Fatima Waqar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much for the response

The event handling in the scenario is not implemented with action listener .. I want to know how to do so..plus the catch block needs to be overviewed
 
Nitin Surana
Ranch Hand
Posts: 129
Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There can't be two public classes within the same java file.
 
Fatima Waqar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What should be done then?
 
Nitin Surana
Ranch Hand
Posts: 129
Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
remove the public keyword.
 
Nitin Surana
Ranch Hand
Posts: 129
Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are small mistakes like space missing, actionPerformed case issue, various public classes etc.

I have corrected the code and it is now, not giving any compile errors. But please use a IDE (Netbeans/Eclipse) so that these silly problems will not occur and you can focus more on the logic.

 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the future, please UseAMeaningfulSubjectLine
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!