Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
44 views

Programming 3 - Module 1

The document provides instructions for installing the Java Integrated Development Environment (IDE) Eclipse on desktop and mobile devices. It explains how to download Eclipse and the Java Development Kit (JDK) for desktop. For Android, it describes downloading the Java N-IDE app from the Google Play Store. The document then outlines the step-by-step process for installing Eclipse on desktop once the downloads are complete. This includes launching Eclipse to set it up as the IDE for writing and running Java programs.

Uploaded by

helios3279
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Programming 3 - Module 1

The document provides instructions for installing the Java Integrated Development Environment (IDE) Eclipse on desktop and mobile devices. It explains how to download Eclipse and the Java Development Kit (JDK) for desktop. For Android, it describes downloading the Java N-IDE app from the Google Play Store. The document then outlines the step-by-step process for installing Eclipse on desktop once the downloads are complete. This includes launching Eclipse to set it up as the IDE for writing and running Java programs.

Uploaded by

helios3279
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

CIEVEROSE COLLEGE, INC.

1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

CIEVEROSE COLLEGE, INC.


1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

Programming 3

Java

STUDENT
LEARNING
MODULE
CIEVEROSE COLLEGE, INC.
Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
Page |1
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

Programming 3
LESSON 1

(Week 1)

INTRODUCTION TO PROGRAMMING LANGUAGE - JAVA

1.1 Introduction to Java


1.2 Computer Programming Definition
1.3 Java as a computer language
1.4 History of Java
1.5 Compiler /IDE
1.6 Installing IDE in desktop step by step
1.7 Installing Java compiler for android user
1.8 Running simple program

To start with this module, you are advised to follow these simple instructions to
assure learning.
1. Look for a good place to study to. It should have clear surroundings, proper ventilation,
free from different noise, and make sure the lights are on.
2. Prepare all the learning tools and materials.
3. Answer the pre-test based on your retained learning.
4. Read and analyze the content of the module.
5. Takedown notes so that you will remember all the important details.
6. Finish all the activities in the module. Enjoy every moment of doing it.
7. Let the facilitator/guardian evaluate your work.
8. Review and prepare for the post-test.
9. Apply the skills you have learned after doing all the activities.

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
Page |2
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

For this lesson, you are expected to:


* Understanding the importance of computer programming.
* Understanding the Java.
* Learning different types of compiler/IDE.
* Learning how to install Eclipse and Java app.
* Running a simple program and understand the codes.

JUMBLED LETTERS
Directions: Read each statement and rearrange the jumbled letters to form a word
that is being described in the statement. Write your answers on the line provided.

1: It is an artificial language designed to communicate/send instructions to a machine.


rroggampmin angeluaga = _________________________________

2. A programming language that developed by James Gosling.


avaj = _______________

3. It’s a programming language that turns them into machine language.


eomcpril = ________________

4. Software application that provides comprehensive facilities


DEI = _________

5. One of the examples of integrated development environment


peclies = _________________

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
Page |3
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

Lessons

Lesson 1.1: Introduction to Java and installing IDE in desktop and


android phone

1.2: Computer Programming definition:

A programming language is an artificial language designed to


communicate/send instructions to a machine, particularly a computer. Programming
languages can be used to create programs that control the behavior of a machine and/or to
express algorithms precisely.

1.3: Java as a computer programming language

Java is a general-purpose, concurrent, class-based, object-oriented computer programming


language that is specifically designed to have as few implementation dependencies as possible.
It is intended to let application developers "write once, run anywhere" (WORA), meaning that
code that runs on one platform does not need to be recompiled to run on another. Java
applications are typically compiled to bytecode (class file) that can run on any Java virtual
machine (JVM) regardless of computer architecture.

A Java virtual machine (JVM) is a virtual machine that can execute Java bytecode. It is the
code execution component of the Java platform. Sun Microsystems has stated that there are
over 5.5 billion JVM-enabled devices

WORA

Write once, run anywhere (WORA) is a term that refers to a particular program's supposed
ability to run on all common OSs (operating systems). The term, sometimes also expressed

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
Page |4
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

as write once, run everywhere (WORE), was originally coined by Sun Microsystems in reference
to Java.

1.4: History of Java

James Gosling initiated Java language project in June 1991 for use in one of his many set-top box
projects. The language, initially called ‘Oak’ after an oak tree that stood outside Gosling's office, also went
by the name ‘Green’ and ended up later being renamed as Java, from a list of random words.

Sun released the first public implementation as Java 1.0 in 1995. It promised Write Once, Run
Anywhere (WORA), providing no-cost run-times on popular platforms.
On 13 November, 2006, Sun released much of Java as free and open source software under the terms of
the GNU General Public License (GPL).

On 8 May, 2007, Sun finished the process, making all of Java's core code free and open-source, aside
from a small portion of code to which Sun did not hold the copyright.

1.5: Compiler/IDE

- A compiler is a special program that processes statements written in a


particular programming language and turns them into machine language or "code" that a
computer's processor uses.

- An integrated development environment (IDE) or interactive development environment is


a software application that provides comprehensive facilities to computer
programmers for software development.

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
Page |5
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

1.6: Getting Eclipse as our IDE for desktop users

Note: Tools You Will Need


- Operating system
- You should know what OS and bit
- Once you know the OS and bit of your OS, you can now download IDE that compatible
to your OS.
- By default we have Windows 64bit - Go to https://www.eclipse.org/downloads/
- Click on the download
- You need to download JDK (Java Development Kit) and install
- To check if you have JDK installed do the command below in cmd

1.6.1: Once you’re done to download Eclipse then install it.

1.6.2: Click on “Eclipse IDE for Java Developers” to install

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
Page |6
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

1.6.3: Installation in progress

1.6.4: Then click LAUNCH

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
Page |7
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

1.6.5: An Icon will appear on your desktop

1.6.6: Installing Java JDK, search in google, click on Java SE - downloads

1.6.7: Click on JDK Download

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
Page |8
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

1.6.7: Download a JDK that compatible to your OS.

1.6.8: Once done to download JDK you can now install it and you can run/launch the eclipse.

1.7: Installing IDE for android users

1.7.1: Go to playstore and search for Java N-IDE


1.7.2: Tap on the Install button
1.7.3: Once installed, tap the Open button

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
Page |9
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

1.8: Running a simple java program in Java N-IDE

1.8.1:
- Tap allow
- Project name: MeSample1
- Package name: MePSample1
- Main class name: MeMSample1
- Then tap OK

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
P a g e | 10
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

1.8.2: Showing the files and saying HELLO TO THE WORLD!

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
P a g e | 11
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

1.8.3: OUTPUT

1.9: Running simple program in Eclipse

1.9.2: Default workplace or where you save your program.

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
P a g e | 12
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

1.9.3: Create a project

-File > new > Java project > name it "MePSample1" > next > Finish

- on the right side you will see the MePSample1 > click on the drop down arrow and right click
on the "src" > click on new > choose "class"

- Name it MeCSample1 > click finish

1.9.4: Type these codes and run, you will see result below.

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
P a g e | 13
CIEVEROSE COLLEGE, INC.
1644 ILANG-ILANG ST., CAMARIN CALOOCAN CITY

Post test

Activity #1
- Insert the missing part of the code below to output "Hello World!"

Activity #2

- Provide the correct answer


1. Java is a specific purpose programming language? If not, provide the correct
answer.
2. Java is an object-oriented computer programming language? If not, provide the
correct answer.
3. What is JVM stands for?
4. Is it true that Java is initially called Green?, if not what is the correct answer?
5. Does java need IDE/compiler to run a code?

CIEVEROSE COLLEGE, INC.


Ilang-ilang St. Camarin Programming 3 - Java Jefferson Guevarra
Caloocan City Lesson 1 - Week 1 Teacher
P a g e | 14

You might also like