File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 3
3
public class UserReader {
4
4
public String [] UserReader (User user ) {
5
5
String email = user .getEmail ();
6
+ String username = user .getUsername ();
6
7
String [] out = new String [] {username , email };
7
8
return out ;
8
9
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public void actionPerformed(ActionEvent e) {
36
36
@ Override
37
37
public String showProfile (String username ) {
38
38
// setting up access to the database of users:
39
- UserDatabase db = UserDatabase (accounts );
39
+ UserDatabase db = new UserDatabase ();
40
40
if (db .UserExists (username )){
41
41
User user = db .getUser (username );
42
42
UserReader reader = new UserReader ();
@@ -50,10 +50,10 @@ public String showProfile(String username) {
50
50
}
51
51
52
52
// for trying out the code:
53
- public static void main (String [] args ) {
54
- new UserSearchUI ();
55
-
56
- }
53
+ // public static void main(String[] args) {
54
+ // new UserSearchUI();
55
+ //
56
+ // }
57
57
58
58
}
59
59
You can’t perform that action at this time.
0 commit comments