문제 직각삼각형이 주어졌을 때 빗변의 제곱은 다른 두 변을 각각 제곱한 것의 합과 같습니다. 직각삼각형의 한 변의 길이를 나타내는 정수 a와 빗변의 길이를 나타내는 정수 c가 주어질 때, 다른 한 변의 길이의 제곱, b_square 을 출력하도록 한 줄을 수정해 코드를 완성해 주세요. import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int c = sc.nextInt(); int b_square = c - a; System.out.println(b_square); } } 제한사항 1 ≤ a
빈칸채우기 문제 import java.util.Scanner; public class Solution { public static void main(String[] args) { String msg = ; int val1 = ; String val2 = ; System.out.println(msg); System.out.println(val1 + 10); System.out.println(val2 + "10"); } } 출력 예시 Spring is beginning 13 310 내가 쓴 답 import java.util.Scanner; public class Solution { public static void main(String[] args) { String msg = "Spring is beginn..
자바에서 String을 다룰 수 있는 split함수를 알아보자 split함수는 말그대로 쪼개는 함수이다. 1. split(String regex) split 함수는 입력받은 정규표현식 또는 특정 문자를 기준으로 문자열을 나누어 배열(Array)에 저장하여 리턴한다. public class Question1 { public static void main(String[] args) { String str = "Spring is beginning for student"; String[] arr = str.split(" "); int len = str.split(" ").length; System.out.println("len : "+len); for(int i =0; i
규칙이다. 참조 사이트) https://stackoverflow.com/questions/56095381/why-string-variable-started-with-capital-s-in-java Why String variable started with capital 'S' in Java? Just wondered why some variables stated from capital letter in Java. int num; String result; stackoverflow.com
규칙이다. 참조 사이트) https://www.geeksforgeeks.org/java-naming-conventions/ Naming Conventions in Java - GeeksforGeeks A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions. www.geeksforgeeks.org
지난 번에 에러를 해결하면서 콘솔 창에 한글이 깨진다는 것을 확인했다. 해결) Help > Edit Custom VM Options idea64.exe.vmoptions 에서 -Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 추가한다. 재시작도 해보고 Gradle 해봤는데 한글깨짐오류가 해결되지 않아 다시 찾아봤더니 IntelliJ 재시작을 해야한다고 했다. 하지만 글쓴이는 아직도 한글깨짐이 해결되지 않아 다른방법으로 계속 시도할 예정이다.
print 시, 한국어를 넣어보았다. 에러가 발생하였다. error : unmappable character (0xED) for encoding x-windows-949 해결) File > Settings...> File Encodings Project Encoding : UTF-8로 변경 Default encoding for properties files : UTF-8로 변경 테스트) 엑 안됨 ㅋ 해결
날짜 select to_date('2024-04-02','yyyy-mm-dd') -sysdate from dual; 시간 select (to_date('2024-04-02','yyyy-mm-dd') -sysdate) * 24 from dual; 분 select (to_date('2024-04-02','yyyy-mm-dd') -sysdate) * 24 * 60 from dual; 초 select (to_date('2024-04-02','yyyy-mm-dd') -sysdate) * 24 * 60 * 60 from dual;
오라클에서 소수점을 정수로 변환하기 위해서는 CEIL, FLOOR, ROUND, TRUNC 함수를 사용한다. CEIL 함수 : 소수점이 있는 경우 소수점 값을 올려서 정수 값을 반환 FLOOR 함수 : 소수점이 있는 경우 소수점 값을 내려서 정수 값을 반환 ROUND 함수 : 소수점이 있는 경우 소수점 값을 반올림해서 정수 값을 반환 TRUNC : 소수점이 있는 경우 소수점 값을 버려서 정수 값을 반환 올림 : CEIL(0.000069444) -> 1 내림 : FLOOR(0.000069444) -> 0 반올림 : ROUND(0.000069444) -> 0 버림 : TRUNC (0.000069444) -> 0
- Total
- Today
- Yesterday
- intellij 무료 버전 설치
- 노랭이 정오표
- sql 노랭이 정오표
- ASCII
- 정오표
- android studio download
- dell 윈도우 재설치
- dell 윈도우 복구
- intellij 프로젝트 생성 방법
- intellij 다운로드 소스 코드 실행 방법
- codepen 연동
- tns:프로토콜 어댑터 오류
- sql 자격검정 실전문제 정오표
- PCCE
- tns:protocol adaptor error
- 이기적 sql 개발자 이론서+기출문제 정오표
- IntelliJ
- 로직 연습
- oracle xe
- release period
- android studio 구 버전
- 웹에서 sql 테스트 사이트
- sqld
- intellij 설치 방법
- oracle
- dell 윈도우
- intellij 무료 버전 설치 방법
- codepen 티스토리 연동
- sql 테스트 사이트
- android studio 구버전
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |