Hi Everyone,

Does anyone know how to add the user input into an array in java.

for instance I have a table of 3 columns and 4 rows the 3 column is designed to allow the user to input 1 or 0. so whenever they typed in anything I want to save the data into an array.

ANy help will be appreciate it.

thanks

Hi Everyone,

Does anyone know how to add the user input into an array in java.

for instance I have a table of 3 columns and 4 rows the 3 column is designed to allow the user to input 1 or 0. so whenever they typed in anything I want to save the data into an array.

ANy help will be appreciate it.

thanks

What you're referring to is called a two-dimensional array. There are many tutorials on that topic and a quick search can provide you with everything you need to know.