0% found this document useful (0 votes)
32 views13 pages

Lecture0 by Tony - Koo

This document provides an introduction to the AP Computer Science A exam and course. It discusses the following key points: 1. The AP Computer Science A exam and course focus on fundamental programming concepts using the Java language, algorithms, data structures, and software engineering principles. 2. Java was chosen as the language because it is beginner friendly, mature, has a huge library and community support, and aims to write once run anywhere (WORA). 3. Object oriented programming (OOP) is introduced, which describes solving problems by modeling real-world objects and their interactions in a program.

Uploaded by

claire.zqm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views13 pages

Lecture0 by Tony - Koo

This document provides an introduction to the AP Computer Science A exam and course. It discusses the following key points: 1. The AP Computer Science A exam and course focus on fundamental programming concepts using the Java language, algorithms, data structures, and software engineering principles. 2. Java was chosen as the language because it is beginner friendly, mature, has a huge library and community support, and aims to write once run anywhere (WORA). 3. Object oriented programming (OOP) is introduced, which describes solving problems by modeling real-world objects and their interactions in a program.

Uploaded by

claire.zqm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

AP Computer Science A

Unit 0 Prepararion of the Course

Tony.Koo
Personal Statement
Name: Tony.D.K.Koo( 古东魁 )
Degree: MSC in CS
Issued By: Hong Kong University
Class of: 2006
Major: Search Engine
Natural Language Processing
Arduino DIYer
Contact:
Cell: 13823308961
WeChat:18410840
Email:[email protected]
Introduction
About APCS A
Why Java?
What is OOP?

Setup Java JDK


contents Setup SDK on Windows
Environment setting

Setup IDE for Java Programming


Setup Eclipse
Your first try--”Hello World!”
Introduction

About APCS A
The fundanmental of programming and
problem solving using Java language.
Admission Credit
1. Programming using Java Credit
A subset of Java is required for the Exam but topics other than
the subset will be taught in the class in order to develop the Java
programming skill of sovling real world problem

2. Algorithm and Data Structure


Develop efficient way to solving the problem and choose proper
APCS A
data structure to achieve it

3. Software Engineering

Obejct Oriented Programming, Software development cycle,etc.

4. Basic priciple in Computer Science Requirement


Career Requirement
Mathmatical theory of computing, hardware, etc.
AP COMPUTER SCIENCE A EXAM

Mutiple Choice Questions


Time: 90 mins

2 Quantity: 40

1 Score: 40 Points

F r e e Re s p o n s e Q u e s t i o n s
Time: 90 mins

Quantity: 4

Score: 36 Points

Final Score = Section1 + Section2 X 1.1111


Why Java?

Beginner Friendliness--easy to
knock the top dog

Maturity
OOP
Lots of support document
WORA
Huge standard libraries
Criticism:
Big community Performance

etc.
What is OOP?
• OOP, Object Oreinted Programming

• Everything in the real world can be


abstracted as an object in program

• The state is described with the


properities of an object

• The features and behaviors are defined


as methods of an object

• Solving problem is treated as the


interaction of diferent objects involved in
the domain
Promise of JAVA: WORA
“Write once run anywhere!”

Java Programs are executed within a program called


Java Vertical Mechine(JVM)
Setup Java JDK --- Lab1(Windows) Setup on MacOS

Download JDK
http://www.oracle.com/
technetwork/java/javas Environment Setting
e/downloads Check it
Step1:Find the environment variable
setting; Open cmd.exe ;
Step2:Add your path(ie. c:\Program Type java --version and
Setup JDK
File\Java\jdk-11.0.x\bin;c:\Program Enter in command line
setup in default path is
File\Java\jdk-11.0.x\jre\bin)
ok;
in Path variable;
mark down the path for Step3:Add your classpath(ie. c:\
further setting Program File\Java\jdk-11.0.x\lib)
(ie. c:\Program File\Java\ in ClassPath variable
Environment Setting

Choosing
Setting Path
JDK Setting
Tells the OS
32-bits java C L A S S PAT H
where to find
ver sion is not java & javac Tells JVM
offered since which are where to find
Java 9 needed when
the .class
compiling and
files
running java
program
Setup IDE for programming --- Lab2

Download Eclipse

h t t p s : / / w w w. e c l i p s e . o r g / d o w n l o a d s /

Setting JREs
Eclipse-->Window-->Preferences-->Installed
JREs-->Add-->Proceed to the path of your jre--
>Finish
Hello World!

Step1:File-->Java Project-->”HelloWorld”-->Finish
Step2:Open HelloWorld fold(double kick)-->Select
src-- >new(right kick)-->class-->HelloWorld
Your first try--Hello World! --- Lab3
• public class HelloWorld { A Class name, the file in which this program
is saved must have the same name

• public static void main(String[] args){B The method from where every
program begins

• System.out.println("Hello World!");
C Output the content in the
parentheses to console

• }

•}
Textbook

You might also like