I want to apply a matrix in Java app.I want the programe to make a matrix in runtime declaring all the variables for columns and rows(according to the number of rows and columns that is given in runtime). How can i declare multiple variables and subsequent assignment in runtime.Is it possible? Please cud anybody do a simple matrix(2 columns,2 rows) programe in java 4 me.The programe gets the number for columns and rows from the user in runtime, then make the matrix declaring variable for the corresponding columns and rows(e.g- c1r1,c1r2,c2r1,c2r2), and then assigning value to them by the user.