Need written in Java Add a GUI using the methods we’ve learned to handle everyth
ID: 3816322 • Letter: N
Question
Need written in Java
Add a GUI using the methods we’ve learned to handle everything through JFrames, JTextfields, etc.
Create a label that will keep a continuous list of the people that have been entered.
You can either create multiple frames to complete this task, or use the same frame with different panels
Person (name, address, email, etc)Employee
Faculty (courses taught, department, etc)
Staff (department, title, etc)
Advisor (department, position outside of university, etc)
Student
Undergraduate Student (class year, gpa, etc)
Graduate Student (same as undergrad)
Other (role at university, position outside of university, etc)
Explanation / Answer
public String sortString(String[] x) {
int j;
String temp;
boolean flag = true;
while (flag) {
flag = false;
for (j = 0; j < x.length - 1; j++) {
if (x[j].compareTo(x[j + 1]) > 0) {
temp = x[j];
x[j] = x[j + 1];
x[j + 1] = temp;
flag = true;
}
}
}
return x;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.