본문 바로가기
반응형

전체 글200

[자바AP연습문제]05.Writing Classes [자바AP연습문제]05.Writing Classes 문제 정답은 제일 아래 "더보기" 클릭 *05.Writing Classes 단원의 복습 내용은 아래 "더보기" 클릭 더보기 Class - A class defines a type and is used to define what all objects of that class know and can do. Compiler - Software that translates the Java source code (ends in .java) into the Java class file (ends in .class). Compile time error - An error that is found during the compilation. These are also .. 2024. 3. 24.
[자바AP.04] 반복문(Iteration) [자바AP.04] 반복문(Iteration) [문제 정답은 제일 아래 "더보기" 클릭으로 확인 가능] *04.Iteration(Loops)에 대한 복습 내용은 아래 "더보기" 클릭 더보기 In this chapter you learned about loops. Loops are used to repeat a statement or block of statements inside a pair of curly braces. Body of a Loop - The single statement or a block of statements that can be repeated (a loop may not execute at all if the condition is false to start with). In J.. 2024. 3. 24.
[자바기초.026] 문자열 비교하기(Comparing String) [자바기초.026] 문자열 비교하기(Comparing String) 1. 문자열이 같은지 비교 (String Equality) equals() 메소드는 두 개의 객체(object)가 같은지 비교하는 명령어 이다. 문자열(String)은 객체이기 때문에, 자바에서는 두 개의 문자열이 서로 같은지 비교할 때 equals() 메소드를 사용한다. 특히, 문자열을 equals()메소드로 비교하게 되면 문자열의 음절 하나씩 같은지 비교하고 또한 음절의 순서도 비교한다. 그래서 자바에서는 문자열이 서로 같은지 정확하게 비교하려면 equals()메소드를 사용하는 것이 맞다. 두 개의 객체를 비교하는 데에 연산자 == 을 사용하게 되면, ==은 두 개의 객체 변수가 같은 객체를 가리키고(refer)있는지 여부를 알려준다.. 2024. 3. 24.
게임으로 배우는 코딩문법 웹 게임으로 배우는 코딩문법 APCSA(자바 AP시험), 파이썬, 기타 코딩 문법을 웹 게임을 하면서 재밌게 공부할 수 있는 사이트를 소개합니다. -링크: https://sites.google.com/view/codinggames/home Computer Science Coding Games Games to Help You Learn Computer Science sites.google.com 2024. 3. 23.
[자바기초.025] Simplifying Boolean Using De Morgan's Law [자바기초.025] Simplifying Boolean Using De Morgan's Law 1. 논리 부정 연산자(negation) ! 논리 부정 연산자(negation)는 " ! " 로 사용하며, !(true) = false, !(false) = true와 같이 참과 거짓을 반대로 만든다. 그리고 이런 문장이 있다고 가정하자. "나는 고등학교에 있는 선생님이다." 이 문장에 !(negation) 논리 뷰정 연산자를 사용한다면, "나는 고등학교에 있는 선생님이 아니다" 라고 표현할 수 있다. 그런데, "나는 고등학교에 있는 선생님이 아니다"라는 말은 좀 모호한게, "나는 고등학교가 아니고 다른 중학교나 초등학교를 말하는 건지?", 또는 "나는 고등학교에 있는건 맞는데, 선생님이 아니라는 건지?" 두 .. 2024. 3. 23.
[자바AP연습문제]03.Boolean Expressions and If Statements [자바AP연습문제]03.Boolean Expressions and If Statements 문제에 대한 정답은 제일 아래 "더보기" 클릭 *03.Boolean Expressions and If Statements에 대한 복습 내용은 아래 "더보기" 클릭 더보기 In this chapter you learned about conditionals. Conditionals are used to execute code when a boolean expression is true or false. A boolean expression is one that is either true or false like x > 0. Block of statements - One or more statements enclosed.. 2024. 3. 23.
[자바기초.024] substring(),toUpperCase(),toLowerCase(),trim() [자바기초.024] substring(),toUpperCase(),toLowerCase(),trim() 1.1 substring() substring()은 문자열을 자르는 명령어 입니다. 1.2 substring() 메소드 사용법 substring() 메소드는 다음과 같이 2가지 형태로 사용할 수 있습니다. substring(int startIndex) 예제 코드 HTML 삽입 미리보기할 수 없는 소스 substring(int startIndex, int endIndex) 예제 코드 HTML 삽입 미리보기할 수 없는 소스 2.1. toUpperCase() 문자열을 모두 대문자(Upper case)로 변환하는 명령어 입니다. 2.2. toUpperCase() 사용법 HTML 삽입 미리보기할 수 없는 소스 .. 2024. 3. 22.
[자바AP연습문제]02.Using Objects [자바AP연습문제]02.Using Objects * 2.Using Objects Summary를 복습하려면 아래의 "더보기" 클릭 더보기 In this unit, you learned to use objects (variables of a class type) that have been written for you in Java. You learned to use constructors and methods with and without parameters of objects, and built-in Java classes like String, Integer, Double, and Math. class - defines a new data type. It is the formal implementati.. 2024. 3. 21.
[자바AP 연습문제] 01.Primitive Types [자바AP 연습문제] 01.Primitive Types 문제의 정답은 제일 아래 "더보기" 클릭 *Unit.1 Primitive Types Summary를 복습하려면 아래 "더보기" 클릭 더보기 Unit.1 Primitive Types Summary Compiler - Software that translates the Java source code into the Java class file which can be run on the computer. Compiler or syntax error - An error that is found during the compilation. Main method - Where execution starts in a Java program. Variable - A.. 2024. 3. 21.
728x90
반응형