티스토리 뷰
이번주는 미니프로젝트로 2개의 과제를 받았다.
1번째 - 메모장 프로그램 만들기
2번째 - 은행 입출금 프로그램 만들기
팀원4명과 함께 각자의 역할을 나누어 진행하였다.
package BankSystem;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class BankVO {
private String name; //이름
private String accountNum; //계좌 번호
private String balance; //잔고
private String transactionDate ; // 거래 일자
// private LocalDateTime transactionTime ; // 거래 시간
private boolean isDeposit; // 입금
private boolean isWithdrawal; // 출금
private String transactionAmount; // 거래 금액
private String bankName; // 은행명
private int money; // 금액
public BankVO(String name, String bankName, String accountNum) {
this.name = name;
this.accountNum = accountNum;
this.balance = "10000";
this.transactionDate = DateTimeFormatter.ofPattern("yyyy년MM월dd일 HH시mm분").format(LocalDateTime.now());
// this.transactionTime = LocalDateTime.now();
this.isDeposit = isDeposit;
this.isWithdrawal = isWithdrawal;
this.transactionAmount = transactionAmount;
this.bankName = bankName;
this.money = money;
}
public BankVO(String name, String bankName, String accountNum, String balance, int money, String tradeDate, boolean isDeposit, boolean isWithdrawal) {
this.name = name;
this.accountNum = accountNum;
this.balance = balance;
this.transactionDate = tradeDate;
// this.transactionTime = LocalDateTime.now();
this.isDeposit = isDeposit;
this.isWithdrawal = isWithdrawal;
//this.transactionAmount = transactionAmount;
this.bankName = bankName;
this.money = money;
}
아직 프로젝트에 진행 중에 있고 OOP개념을 잘 활용하기에는 많이 부족한 것을 느꼈다.
첫 Java 프로젝트를 진행하며 직접 구현해 보면서 더 많이 배울 수 있었고 부족한 부분을 체크할 수 있었다.

주말에는 유튜브 바킹독을 보면서 알고리즘 공부를 진행하였고 강의에서 제공해준 백준 문제를 풀어보았다.
'개발 > Weekly I Learned' 카테고리의 다른 글
| WIL(Weekly I Learned)/22.12.18/ # JWT 회원가입구현 (0) | 2022.12.18 |
|---|---|
| WIL(Weekly I Learned)/22.12.11/ # Spring 게시판구현 (0) | 2022.12.09 |
| WIL(Weekly I Learned)/22.12.04/ # OOP 개념 정리 (0) | 2022.12.02 |
| WIL(Weekly I Learned)/22.11.20 (2) | 2022.11.20 |
| WIL(Weekly I Learned)/22.11.12 (0) | 2022.11.12 |
댓글