back soft

مطالب مرتبط با «populate array with user input java» در back soft | نویسنده: استخدام کار

Populating an array using user input(JAVA)

Vote count: 0 So I have made a 'Student' class which has some data members,and methods....What I want to do is get input from the user using a form and then initialize a student object using the values entered by the user. I used the following code but somehow every Student object has the same values as the last entered user input. Srry for bad English //Declared in main class Student1 stu = new Student1(); Student1[] Student1Array = new Student1[200]; int Mcounter =0; //elsewhere in the program private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { int Admno = Integer.parseInt(admTF.getText()); String Name = name.getText(); int Standard = Integer.parseInt((String)(ClassCB.ge...

ادامه مطلب