Hello~
I feel like I'm overlooking something very simple.
But I've been working on this assignment for hours already and I still don't get how I'm able to do it.
Anyways, the whole assignment is to revise a code. To add make the user add data. And that I' am required to write a GUI program instead of a console program.
I think I've done most of it right...
But I'm just blocked as to how I'm going to finish it. I've already searched so many forums but they've been only giving me simple solutions that is all under one class.
So the assignment tells me that:
After all data are entered, loop through the array again and output the payroll by calling employee.toString() and employee.earnings().
Ok, so that means I have to create the same
for statement as I used for the code below right?
But I'm just stumped on how I'm going to do that.
Also he wants me to Append the output into a
String.
JOptionPane.showInputDialog
Which means (firstName+ " " + lastName) So adding a space in between it.
And call JoptionPane.showMessageDialog() after the loop.
I was able to call the output, but how 'am I able to Append the String firstName, String lastName is in a different class.
To be honest, I'm just so lost in my
Java online class... Its not really a class when I don't get to learn anything and its disappointing when I really wanted to learn, and be proficient at it. He just makes us read the book and do the assignments, and if we do ask questions he makes us read the book again.
Here are the codes: