본문 바로가기
반응형

자바(Java)64

APCSA Mock Test APCSA Mock Test -Mock Test (1) link: https://vo.la/vlsqd -Mock Test (2) link: https://vo.la/bHyeQ -Mock Test (3) link: https://vo.la/cWnxf -Mock Test (4) link: https://vo.la/IkCne -Mock Test (5) link: https://vo.la/NhlYl -Mock Test (6) link: https://vo.la/XUvSl (Timed test below;) -Mock Test (7) link: https://vo.la/LPIuq -Mock Test (8) link: https://vo.la/axuCw -Mock Test (9) link: https://vo.la.. 2024. 3. 29.
[자바AP연습문제] 10.Recursion [자바AP연습문제] 10.Recursion *10.Recursion 단원의 복습내용은 아래 "더보기" 클릭 더보기 In this unit you learned about recursion. A recursive method calls itself (contains a call to the method from inside of the method). A recursive method should have at least one way to stop the recursion. This is called a base case. base case - A way to stop the recursive calls. This is a return without a recursive call. call stack -.. 2024. 3. 29.
[자바AP연습문제] 09.Inheritance [자바AP연습문제] 09.Inheritance *09.Inheritance 단원의 복습내용은 아래 "더보기" 클릭 더보기 In this chapter you learned about inheritance. In an object-oriented program you write classes that define what objects of each class know (instance variables) and can do (methods). One class can inherit object instance variables and methods from another, which makes the amount of code that you have to write smaller and makes th.. 2024. 3. 29.
[자바AP연습문제]08.2D Arrays [자바AP연습문제] 08. 2D Arrays *08.2D Arryas 단원의 복습내용은 아래 "더보기" 클릭 더보기 In this chapter you learned about two dimensional arrays. A two dimensional array stores objects in a 2d table. You can think of it as storing objects in rows and columns, but it actually uses an array of arrays to store the objects as shown below. In this chapter you learned how to declare 2d arrays, create them, and access array .. 2024. 3. 29.
[자바AP연습문제] 07.ArrayList [자바AP연습문제] 07.ArrayList *07.ArrayList 단원의 복습내용은 아래 "더보기" 클릭 더보기 In this chapter you learned about ArrayLists which are dynamic re-sizable arrays. You learned how to declare and create ArrayLists, add and remove objects from them, set the object at an index, and get the object at an index. List are like arrays in that you can store many objects of the same type in a list, just as you can in an ar.. 2024. 3. 29.
[자바기초.028] for-each loop [자바기초.028] for-each loop 1.for-each 반복문(Enhanced for 반복문) 배열에 사용하면 좋을 for each loop(enhanced for loop)이 있습니다. for-each문은 그냥 일반적인 for문보다 사용하기 편합니다. for문의 index나 [ ] 괄호를 사용하지 않고 반복문 순회(traverse)를 할 수 있는게 for-each 문입니다. [예제1] 아래 코드는 String형, int 형 배열을 for-each loop으로 순회하며 요소값을 출력하는 코드입니다. HTML 삽입 미리보기할 수 없는 소스 for-each loop를 사용하면 배열의 첫 번째 요소(element)부터 마지막 요소까지 하나씩 자동적으로 접근할 수 있다. for-each loop를 사용.. 2024. 3. 29.
AP Computer Science A Java Quick Reference (3) Math Class AP Computer Science A Java Quick Reference (3) Math Class 자바에서 Math 클래스는 자바를 설치하면 포함되는 클래스로서, 이 클래스 안에 있는 메소드들은 static method이기 때문에 object를 만들지 않고 "클래스이름.메소드이름()" 방식으로 바로 사용가능합니다. Static methods (also called class methods) are called using the class name and the dot operator (.) followed by the method name. You do not need to create an object of the class to use them. You can use ClassName.metho.. 2024. 3. 28.
AP Computer Science A Java Quick Reference (2) Integer & Double AP Computer Science A Java Quick Reference (2) Integer & Double 1.Wrapper Class - Integer & Double HTML 삽입 미리보기할 수 없는 소스 wrapper class for int is Integer. wrapper class for double is Double. int, double의 primitive type 대신에 Integer, Double 같은 wrapper 클래스를 만들면 다양한 method를 사용할 수 있는 장점이 있습니다. Java 9 버전이후로는 그냥 = 연산을 사용하여 값을 바로 대입해 Integer, Double 오브젝트를 만들어도 됩니다. 생성자(Constructor)를 사용하여 Integer, Double.. 2024. 3. 28.
APCSA(JAVA) Midterm Test(Unit.01~05) APCSA(JAVA) Midterm Test(Unit.01~05) -Test link : Click this link 5.15. Midterm Test — AP CSAwesome 5.15. Midterm Test The following 20 questions are similar to what you might see on the AP CSA exam for Units 1 - 5. You may only take this test once while logged in. There are no time limits, but it will keep track of how much time you take. Click on the f runestone.academy [문제1] Which of the foll.. 2024. 3. 27.
728x90
반응형