Declaring an array is the same as declaring a variable except that you add the brackets [ ]. So to make a string array called names:
String names[]; You then must instantiate the array with the following statement: names = new String[100]; Were the 100 is the number of array elements you want. The two statements can be combined into: String names[] = new String[1100]; To use the array it is just like any other primitive variable except the it can hold multiple values addressd by the number (idex) between the brackets. names[0] = "Tom"; names[1] = "Den"; System.out.print(names[0]); Will print Tom. I hope this helps, it not much more than a rehash of Sang's lesson on array's. DenS On Oct 26, 2:34 pm, aderemi adeyi <[EMAIL PROTECTED]> wrote: > HI, > The concept behind the java array assignment i cant really figure what is > talking about can anybody help out using the JOptionPane > > Aderemi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
