Hi Roger, This code represents the class constructor which must not has a return type
In this example it doesn't has a vital role and can be removed (but the code works fine with it) Review this link to know about constructors http://java.sun.com/docs/books/tutorial/java/javaOO/constructors.html hope I helped A.S.El-Dalatony _____ From: [email protected] [mailto:[email protected]] On Behalf Of Roger O'Dell Sent: Monday, January 19, 2009 9:03 PM To: [email protected] Subject: [java programming] Lab-1004 Java Programming Exersise 2 Typing out the code for example 2.21 into Netbeans results and an error. The following line(s) need to be removed for the code to compile. There is no return type and it has nothing to do with the rest of the code. The example compiles without it. Did anyone else notice this when they did the lab? /** Creates a new instance of InputFromKeyboardJOptionPane */ public InputFromKeyboardJOptionPane() { } Roger O'Dell --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
