View Single Post
  #4 (permalink)  
Old 11-04-2007, 11:34 AM
JavaBean's Avatar
JavaBean JavaBean is offline
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Code:
String[] name = new String[1000]; String airline = nameInputField.getText(); for(int nameCounter = 0; nameCounter < name.length; nameCounter++){ name[nameCounter] = airline; }
As far as i see from the above code, you have an array with a predefined size and you are filling it with the same value obtained from a textfield. So it is normal to have your array elements to have the same values which is the entered text from the user.

What is the input you are getting from user and what do you want to put inside your array exactly?
Reply With Quote