Hey all!

i'm having a little bit of a problem with the java array homework
First i tried to just start off by take string input with JOptionPane, but it 
is showing error while printing the input
my program is as follows:
import javax.swing.JOptionPane;
/**
 *
 * @author SONAM DALAL
 */
public class JavaArray {
    public JavaArray(){
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        String name[]=new String[30];
        name[30]=JOptionPane.showInputDialog("Enter your full name");
        String msg="Hello "+name+"!!!" ;
        JOptionPane.showMessageDialog(null,msg);
    }

}


Also how do you you use the split concept to print first name separately?
This homework is kinda confusing!!

Thanks a lot!

_________________________________________________________________
One stop at MSN India to catch up with what’s hot in the world around you today
http://in.msn.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to