That appears to be a default constructor, which would be used if creating 
an InputFromKeyboardJOptionPane object in another class. Not including it 
will have the same affect in this instance, since the constructor doesn't 
do anything and the class doesn't really have any fields to initiate. 

On Tuesday, March 5, 2013 8:23:42 PM UTC-6, [email protected] wrote:
>
> Hi Sang,
>  
> I have a question on the first lab of lecture 2 (Getting input from 
> keyboard).  In Exercise 2 on the JOptionPane example, you have created a 
> new instance of InputFromKeyboardJoptionPane apart from the main method.  
> What's the purpose of creating a self instance in this case?  I couldn't 
> find relevant explanation from the lecture pdf file.
>  
>
> public class InputFromKeyboardJOptionPane {
> *     *
> *    /** Creates a new instance of InputFromKeyboardJOptionPane */*
> *    public InputFromKeyboardJOptionPane() {*
> *    }*
>
> *     *
> Cheers,
> Angela
>

-- 
You received this message because you are subscribed to the Google Groups 
"JPassion.com: Java Programming" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/jpassion_java?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to