본문 바로가기

Programming/Java, Spring98

[Java 기초문법] 자바 객체지향 | OOP, Interfaces, Super class, Abstract class, Factory Methods, Nested class, inner class [Java 기초문법] by Professional Java Developer Career Starter: Java Foundations @ Udemy More Advanced OOP Topics 시작 데이터를 regex로 파싱해서 정보를 뽑아내는 다음과 같은 코드가 있다고 치자. package com.neutrio.employee; import java.text.NumberFormat; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static void main(String[] args) { String peopleText = """ Flinstone, Fred, 1/1/1990, Prog.. 2022. 10. 20.
[Java 기초문법] 객체지향 | Gradle, Enums, Enum의 여러 기능들 [Java 기초문법] by Professional Java Developer Career Starter: Java Foundations @ Udemy Enums is a very special type of Java class that can represent a finite set of values. These values will usually be related to each other in some way, like they will be a set. 프로젝트에서 Gradle system으로 만들기 with Gradle system, we get these built automatically. 그래이들이란 무엇일까? IntelliJ is actually downloading libraries wh.. 2022. 10. 19.
[Java 기초문법] 자바 코드 디버깅하기 [Java 기초문법] by Professional Java Developer Career Starter: Java Foundations @ Udemy breakpoint 만들기 debug 모드로 돌리면 이때 이 지점에서 멈춘다. here it is haulted waiting me to do something stepover을 할 것인지 stepinto를 할 것인지 정할 수 있다. stepinto를 누르면 다음 단계로 진행되면서 변수가 들어간 것을 보여준다. showing the flow of the thread flow를 지나면서 어떤 진행라인과 변수 할당을 거치는지 보여줌 Break point에 조건 부여하기 2022. 10. 19.
[Java 기초문법] Testing code | junit을 이용한 테스팅, Edge case, Annuity 계산해보기, TDD로 guessing game implementing [Java 기초문법] by Professional Java Developer Career Starter: Java Foundations @ Udemy JUnit 셋업하기 프로젝트 스트럭처에서 Library>+버튼>From Maven 메이븐을 선택해준다. 메이븐은 one of which it standardizes how we can organize our Java project. Which can also build our projects. 서로 다른 환경(IDE 등)에서 개발된 자바 프로젝트를 Standardize 해주는 툴 And also, MAVEN project has what are called repositories, where they've gathered up thousands of thi.. 2022. 10. 19.
[Java 기초문법] | Control flow | loop, while 반복문, do while 반복문, for 반복문, enhanced for loop [Java 기초문법] by Professional Java Developer Career Starter: Java Foundations @ Udemy While loops System.console().readline 유저한테 input을 받을 수 있다. String guessedNum = System.console().readLine("Please guess a number btw 1 and 10 inclusively: "); will contain the number that the use enters from the keyboard. import java.util.Random; public class GuessIt3 { public static void main(String[] args) { int.. 2022. 10. 18.