Skip to content

Commit

Permalink
History method
Browse files Browse the repository at this point in the history
  • Loading branch information
bandito19 committed Jan 31, 2024
1 parent 088412d commit 2d17998
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,12 @@ public void setCutomer(Customer cutomer) {
public void setRecord(String record) {
this.History.add(record);
}

public void History() {
System.out.println(this.getCutomer()+" History: ");
for(String record : this.History) {
System.out.println(record);
}
System.out.println();
}
}
Binary file modified bin/Account.class
Binary file not shown.

0 comments on commit 2d17998

Please sign in to comment.