Here I am again with more questions. I am groveling for help.
I am working on a program in Netbeans 5.5.1 where I created a class called Student that gets and sets Last Name, First Name and Student ID. Now the program to run as a samle of this class will store the first Student I get and put it into slot [0] of my array and then I increment my NumStudents, as a count to moveon to the next array slot. The problem is that it only puts the Student info into slot[0], even on the 2nd or 3rd entry to store information. I’m not sure if the problem is in the gets and sets in my class or in my Store Info button listener.
Here is a bit of the code. I have comments to help explain my problem.
Thank you oh virtuosos of Java! This stuff brings me to tears!
- private void mouseclickedbtnStoreInfo(java.awt.event.MouseEvent evt)
- {
- // Code to store info from the textbox entered by user:
- s.setFirstName(txtFirstName.getText());
- s.setLastName(txtLastName.getText());
- s.setStudentID(txtStudentID.getText());
- arrayAllStudents[NumStu] = s;
- NumStu++;
- txtFirstName.setText("");
- txtLastName.setText("");
- txtStudentID.setText("");
- //Testing array storage here also
- /*This only prints out only for the second student entered, loses the first, NumStu times, apparently only storing in slot 0. array is of Student class as is the variable s.*/
- for(int i=0;i<NumStu;i++){
- System.out.println(arrayAllStudents[i].getStudentID());
- System.out.println(arrayAllStudents[i].getFirstName());
- System.out.println(arrayAllStudents[i].getLastName());
- }
- }
Hopefully this is not a challenging puzzle for all you experts out there. Pop me a line soon. I’ll take my turn helping when I get this #*@& figured out.
viagra canada otc sildenafil 130 buy cheap generic viagra
what to eat with amoxicillin order amoxicillin how long between amoxicillin doses
augmentin in timpul menstruatiei augmentin dose paediatric augmentin xr sinusitis
augmentin and flu shot augmentin 1g lieu uб»‘ng co-amoxiclav augmentin and alcohol
what is amoxicillin-clav 875-125 mg used for can i drink while on amoxicillin amoxicillin and metformin
amoxicillin make you sleepy amoxicillin dizzy what happens if you drink on amoxicillin
doxycycline prescription doxycycline side effects in dogs panting how long after doxycycline can i drink alcohol
alternatives to prednisone for autoimmune disease prednisone withdrawal after 7 days prednisone dose pack instructions
prednisone for sciatica pain prednisone 5 mg para que sirve prednisone for dogs uses
cialis porn the cost of tadalafil in belize cialis package insert
viagra price in us generic viagra prices viagra prescription online usa
100mg sildenafil coupon where to buy generic sildenafil pink viagra for women
tadalafil half life best generic tadalafil cialis experience forum
essay review service essay on customer service essay helper app
essay writer online write my essay 4 me how to conclude an essay
target pharmacy bupropion pharmacy online uk mexican pharmacy advair
prescription without a doctor’s prescription amoxicillin target pharmacy viagra direct pharmacy
european pharmacy valium no prescription online pharmacy hydrocodone baclofen inhouse pharmacy
zoloft online pharmacy cheapest pharmacy to fill prescriptions with insurance viagra in indian pharmacy
morrisons pharmacy viagra mutual of omaha rx pharmacy directory buy synthroid online pharmacy
how long does 20 mg tadalafil last nitric oxide and tadalafil best generic tadalafil
tadalafil 20 mg how to take description tadalafil desmopressin tadalafil interactions
tadalafil 20 mg how to take tadalafil pharmacy what are tadalafil tablets
is 5mg of tadalafil enough tadalafil vs sildenafil cost tadalafil 5mg price cvs
tadalafil pill tadalafil 10 mg reviews ziphealth tadalafil
sildalis sildenafil tadalafil tadalafil liquid review tadalafil price
12 mg tadalafil tadalafil max dose coupons for tadalafil
tadalafil dose and timing tadalafil vasodilatacao is it safe to take 2 tadalafil tablets
12 mg tadalafil tadalafil (cialis) tadalafil therapeutic class
benefits of tadalafil tadalafil indications tadalafil 15 mg