본문 바로가기

Java10

[우아한테크코스] 1주차 문자열 덧셈 계산기 STEP 0 : Application.java 프로그램의 진입점 역할을 하며, View와 Controller를 생성하고 실행합니다.package calculator;public class Application { public static void main(String[] args) { CalculatorView view = new CalculatorView(); CalculatorController controller = new CalculatorController(view); controller.processInput(); }}  STEP 1-1 : DelimiterParser.java - Model: DelimiterParser와 Calculator 클.. 2024. 10. 17.
[JAVA] JDK 21 설치, 환경 변수 설정 cmd(or 터미널) 창에서,java -version 명령어를 입력하면현재 자바 버젼은 18.0.2.1 로 확인된다. JDK 21로 변경하자1. JDK 21 다운로드https://www.oracle.com/kr/java/technologies/downloads/#jdk21-windows Download the Latest Java LTS FreeSubscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts.www.oracle.com이후 설치 과정을 진행한다.2. 환경 변수 설정설정 > 시스템 > 정보 > 고급 시스템 설정 >환경 변수 >처음이라면) 새로 만들기버전.. 2024. 10. 17.
응답에 \ 가 포함 에러 현재 ApiResponse 객체에 JSON 데이터를 문자열로 반환하고 있어서, 이때 문자열 내의 특수 문자(예: " 등)가 이스케이프 처리되어 \ 문자가 붙은 상태로 출력되고 있습니다. 이를 해결하기 위해서는 JSON 데이터를 파싱하여 객체로 변환한 후, 그 객체를 다시 JSON 문자열로 변환하여 반환하거나, 이스케이프 문자가 없는 형태로 바로 반환할 수 있도록 수정해야 합니다.{ "status": "success", "data": "{\"events\":[{\"id\":\"66d0baae4106f82fb1036f84_20221028T030000Z\",\"title\":\"일정 제목\",\"type\":\"USER\",\"calendar_id\":\"primary\",\"is_recur_event\".. 2024. 9. 4.
Java Software Solution Ch7_PP3 PP 7.3 Write a class called SalesTeam that represents a team of salespeople. Each salesperson on the team is represented by the SalesPerson class of PP 7.2. Each team has a name, and the constructor needs only to accept the name of the team. Use an ArrayList to store the team members. Provide a method called addSalesPerson that accepts a SalesPerson object. Provide a method called weeklyReport t.. 2024. 5. 1.
Java Software Solution Ch7_PP2 PP 7.2 Create a class called SalesPerson that represents a salesperson in an organization. The SalesPerson class should have the name, the phone number, and the assigned district of a salesperson. Each salesperson acquires a certain sale amount every day. Provide a constructor that sets all instance values based on parameter values. Overload the constructor such that each daily sale amount for a.. 2024. 5. 1.
Java Software Soution Ch7_PP8 PP 7.8 Write a Java interface called Lockable that includes the following methods: setKey, lock, unlock, and locked. The setKey, lock, and unlock methods take an integer parameter that represents the key. The setKey method establishes the key. The lock and unlock methods lock and unlock the object, but only if the key passed in is correct. The locked method returns a boolean that indicates wheth.. 2024. 5. 1.