Android Class Course Intro
Android Class Course Intro
IT LEARNING CENTER
Extra materials:
• Java documentation: https://docs.oracle.com/javase/8/docs/
or
https://docs.oracle.com/javase/7/docs/api/
Tugas & Ujian
6-8 Tasks - 20 points
Successive tasks that amount to each materials
1 Mid Exam (week 6) - 30 points
Theory(5p)+ assignment(25p)
1 Final Exam (week 11) - 40 points
Theory (10p) + assignment(30p)
1 Final Project (week 12) - 40 points
Theory (10p) + assignment(30p)
Tujuan
The goal of the course if to give you the following:
Introduction
Perbedaan Programming Languages
● Machine languages - interpreted directly in hardware
● Assembly languages - wrappers over a corresponding machine language
● High-level languages - machine-independent
○ Python
○ Java
○ C++
○ ...
● …
Sejarah Java
• 1) James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in
June 1991. The small team of sun engineers called Green Team.
• 2) Originally designed for small, embedded systems in electronic appliances like set-top boxes.
• 3) Firstly, it was called "Greentalk" by James Gosling and file extension was .gt.
• 4) After that, it was called Oak and was developed as a part of the Green project.
• 5) Why Oak? Oak is a symbol of strength and choosen as a national tree of many countries like
U.S.A., France, Germany, Romania etc.
• 6) In 1995, Oak was renamed as "Java" because it was already a trademark by Oak
Technologies.
Sejarah Java
• 7) Why had they choosen java name for java language? The team gathered to choose a new
name. The suggested words were "dynamic", "revolutionary", "Silk", "jolt", "DNA" etc. They
wanted something that reflected the essence of the technology: revolutionary, dynamic, lively,
cool, unique, and easy to spell and fun to say.
• According to James Gosling "Java was one of the top choices along with Silk". Since java was so
unique, most of the team members preferred java.
• 8) Java is an island of Indonesia where first coffee was produced (called java coffee).
• 9) Notice that Java is just a name not an acronym.
• 10) Originally developed by James Gosling at Sun Microsystems (which is now a subsidiary of
Oracle Corporation) and released in 1995.
• 11) In 1995, Time magazine called Java one of the Ten Best Products of 1995.
• 12) JDK 1.0 released in(January 23, 1996).
Environment setup
}
End
Struktur Java
Struktur Program Java
• In the Java programming language:
• Program dibuat dengan atau lebih dari 1 kelas
• Satu kelas biasanya memiliki ebih dari 1 method
• Suatu method berisi berbagai statement
Badan kelas
}
Tipe Data
Data Types
• Konstan
• Variable
What is a Constant?
• 456—nomor yang diset langsung
• System.out.println(456); // Java
• Console.writeline(456); // Visual C#
• “A Literal String Constant”
• System.out.println(“My First Java”); // Java
• Console.writeline(“My First C#”); // Visual C#
Apa itu variabel
• Suatu yang di set memiliki nama dan isinya dapat diganti-ganti, dan
dioperasikan di dalam program
Tipe data Primitive
Deklarasi tipe data
• int, short, long
• float, double
• boolean
• char
Tipe Data– Integer / Angka
• Int – the default declaration – 4-byte integer
• Byte—1-byte integer
• Short—2-byte integer
• Long—8-byte integer
Tipe Data Float / koma
• Float—a 4-byte floating point number, contoh 4,5
• Double—an 8-byte floating point number , contoh 4,54
8 Tipe Data Primitive
• Boolean, byte, char, double, float, int, long, short
Ukuran dan Range
PRIMITIVE SIZE IN BITS RANGE
Your Assignment
• Create some codes that prove our topics today / Operator type
• Try to create something awesome
HALTEGH
IT LEARNING CENTER
End
HALTEGH
IT LEARNING CENTER
Pertanyaan ?