Tuesday 6 November 2018

JAVA PROGRAMMING BASICS

Course Duration : 6 days
[7 hours of classes & workshop/practice  per-day]
Examination : JAVA ORACLE Level 1 & 2
Your Trainer: Dr. Harjinthar Singh

WHAT IS JAVA? 
Want to know what is computer programming? Or why learn JAVA? You have come to the right place. In this 12 weeks course, you‘ll first learn the basics of programming and then JAVA programming language to start writing your own pro- grams. You‘ll also gain a foundation for further study and training in computer programming or in JAVA.

CASE-EXAMPLE: we will use the Calculator program (provided here) throughout this course when necessary. A calculator has input (numeric keypad), output (screen showing results of calculations), arithmetic logic (the basis of all computers : ADDING!), and memory  storage. Now, read again  this  paragraph  and  tell  me  why  the calculator program  is used here.


PROGRAMMING FUNDAMENTALS 
Ever wondered exactly what a computer program is? In this lesson, we will learn how programs work, and then we‘ll examine the steps involved in designing and writing a program. YES, we will use again the last week‘s calculator program.

OBJECT-ORIENTED PROGRAMMING
What is object-oriented programming? What are other types of programming languages, and how they are different? JAVA is object-oriented and we‘ll discuss classes, objects, attributes, and methods, and how they all work together to form programs that are both modular and reusable.


JAVA COMPILER INSTALLATION
Now, with some basics it‘s time to get down to business. Today, you’ll download and install all the software you need to write and test JAVA programs. You‘ll also test your installations by running your very first program, and you‘ll learn what it means to compile a program before running it.


TRULY YOUR FIRST JAVA PROGRAM
Now that you‘ve installed all the software and run your first program, you‘re ready to actually write a program of your own. In this lesson, you‘ll start from scratch and write your first program, which will duplicate the results of the one you ran last time. Along the way, you‘ll learn how to define a class, the data it needs, and the methods that make it work.


DATA DECLARATIONS, CONSTRUCTORS, EXPRESSIONS, AND MAIN()
This lesson will be a bit like peeling an onion. We ran a program that we didn‘t write (the whole onion) in Lesson 4. In Lesson 5, we took one layer off the onion when we wrote a program to do the same simple task. Today, we‘ll peel back another layer or two as we start the process of writing a more complicated program, one that will take us several lessons to finish. Hopefully, we‘ll be able to avoid the tears as we begin our development and go over basic program structure, data types, and calculations.


CONDITIONS AND LOGICAL EXPRESSIONS: MAKING DECISIONS
In this lesson we‘re going to continue developing the program we started last time. We‘ll add decision-making to our programming repertoire, and we‘ll see how JAVA compares values. Then we‘ll discuss how to use those comparisons to decide what course of action to take in any given situation.


LOOPS: REPEATING ACTIONS
Round, and round, and round we go. . .where we stop, nobody knows! Actually, you will know, because today‘s lesson is all about using loops to repeat actions as many times as you want. And if you write your loops well, you‘ll definitely stop where you want!


APPLETS: WORKING IN BROWSER WINDOWS
In today‘s lesson, you‘re going to learn how to write applets, which are small JAVA programs that run in browser windows and use GUI (Graphical User Interface) tools. Just like before, we‘ll start out very simply, then dive into the deep end in another lesson.


BASICS HAPES: LINES, RECTANGLES, OVALS, ARCS, AND POLYGONS
Ready to bring out your inner Picasso? Today, we‘ll use JAVA‘s 2-D graphical tools to draw simple shapes like rectangles, ovals, arcs, and polygons. Along the way, you‘ll also learn some more programming techniques related to storing groups of items in a single collection called an array.


IMAGES AND FONTS
In this lesson, you‘ll improve your graphics capabilities by learning how to load an image and display it. If you have any digital pictures of family or friends, now is the time to get them out! You‘ll also see how to enhance your text capabilities using different font faces, styles, and sizes.


ANIMATION AND INTERACTION 
Just a couple of final topics related to graphics: animation and interactivity. You‘ll see how to animate simple shapes by moving them and redrawing them. Then you‘ll learn how to make your programs interact with the mouse so that a user can make things happen using a simple click-and-drag interface.
REMEMBER: you don‘t actually move and object on the screen. you re-draw it! Meaning; a penguin walking across the screen is being re-drawn on different location of the screen. So, re-draw the same body but re-draw the legs in different angles so the penguin will be seen as walking

No comments:

Post a Comment

Calendar