Sie sind auf Seite 1von 33

JAVA PROGRAMMING

EDISON E. FERANIL
VARIABLE AND TYPES
JAVA PROGRAMMING BASIC
LESSON MATRIX
CONTENT CONTENT PERFORMANCE LEARNING CODE
STANDARD STANDARD COMPETENCIES
Java technology The learners The learners LO 1. Apply basics TLE_ICTJAVA1 1-
and the Java demonstrate independently and of Java language 12POAD-IIfi-29
programming understanding of the effectively use 1.1 Demonstrate
language principles and object-oriented knowledge of Java
JAVA framework concepts in technologies and the technology and Java
programming
Basic computer demonstrating use of software
1.2 Create executable
operation skills knowledge of Java modeling, as applied Java applications in
Importing JAVA technology and Java to a software accordance with Java
packages programming development framework
JAVA data types language, and process, and present 1.3 Import Java
performing object- one practical & packages to make them
oriented analysis complete object- accessible in the code
and design oriented analysis 1.4 Demonstrate
working with Java Data
and design (OOAD)
types in accordance
roadmap based on with Java framework
TESDA Training
Regulations
REMINDERS

• Attendance
• Laboratory rules
• Classroom rules
REVIEW
JAVA PROGRAMMING BASIC
MOTIVATION
DRAW A TREE

• Using your smartphones , take a picture of your


drawing and send it to my computer.
• Describe the parts of the tree.
• How can you relate a tree to programming as a
skill.
VARIABLE AND TYPES
JAVA PROGRAMMING BASIC
RULES IN NAMING VARIABLES
• There must be no spaces for double words
• monthly salary

• Used underscore as replacement for spaces


• Monthly_Salary

• Do not use special characters as variables


• %%&^*(

• Do not start your variables with numbers


• 13month_pay

• Do not use reserved words ( these are those words that we used as commands in
programming)
• Class, main, int, char, double
GENERALIZATION:

• How do you understand variables and its uses in


java programming?
• Why data type is important in naming variables?
SUMMARY

• Variables – containers for our data


• Data types – naming convention for our data
• Properties of our data
• Int – whole numbers
• Double – decimal numbers
• Boolean – true or false
QUIZ

• Analyze the following variables if it is accepted or not accepted as naming


convention in our java program.
• Write A if accepted and NA if not accepted
1. First name
2. Last_name
3. Income
4. Class_main
5. Int
6. 45caliber
7. Phone#
8. myPhoneNumber3
9. (*)&*&*(
10. .java_program
“Programming is also a skill that
needs exercise and practice”
-Anonymous
AGREEMENT

Group activity
• Study how to make and read input from java program.
• Make a 3-5 minute video tutorial on input and calculation used in java
programming using Netbeans.
• This will be shared in the class in our next session.

Das könnte Ihnen auch gefallen