Introduction Java Chapter 3.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

An Introduction to Programming with C++ Fifth Edition Chapter 3 Completing the Problem-Solving Process and Getting Started with C++
Chapter 1 - An Introduction to Computers and Problem Solving
IT151: Introduction to Programming
© 2007 Lawrenceville Press Slide 1 Chapter 3 Classes and Objects.
Your First Java Program: HelloWorld.java
Chapter 1: Introduction
Program Flow Charting How to tackle the beginning stage a program design.
Slides prepared by Rose Williams, Binghamton University Chapter 3 Flow of Control Loops in Java.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Introduction 01_intro.ppt
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
Introduction to Java Thanks to Dan Lunney (SHS). Java Basics File names The “main” method Output to screen Escape Sequence – Special Characters format()
Chapter 1 Introduction. Goal to learn about computers and programming to compile and run your first Java program to recognize compile-time and run-time.
Programming Lifecycle
Chapter 1 CSIS-120: Java Intro. What is Programming?  A: It is what makes computer so useful.  The flexibility of a computer is amazing  Write a term.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Structural Program Development: If, If-Else Outline.
Computer Programming TCP1224 Chapter 3 Completing the Problem-Solving Process and Getting Started with C++
/* Documentations */ Pre process / Linking statements Global declarations; main( ) { Local Declarations; Program statements / Executable statements; }
Java Syntax and Style JavaMethods An Introduction to Object-Oriented Programming Maria Litvin Gary Litvin Copyright © 2003 by Maria Litvin, Gary Litvin,
Sharda University P. K. Mishra (Asst.Prof) Department of Computer Science & Technology Subject Name: Programming Using C Sub Code: CSE-106 Programming.
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
Introduction to programming in the Java programming language.
Chapter 3 Introduction To Java. OBJECTIVES Packages & Libraries Statements Comments Bytecode, compiler, interpreter Outputting print() & println() Formatting.
Anatomy of a Java Program. AnotherQuote.java 1 /** A basic java program 2 * 3 Nancy Harris, James Madison University 4 V1 6/2010.
CPS120: Introduction to Computer Science Introduction to C++
Agenda Comments Identifiers Keywords Syntax and Symentics Indentation Variables Datatype Operator.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Feb 10th, 2009 Introduction to Programming.
© 2007 Lawrenceville Press Slide 1 Chapter 3 Classes and Objects 1. How is a class different from an object?
Introducing Java Chapter 3 Review. Why Program in Java? Java, is an object-oriented programming language. OOP languages evolved out of the need to better.
Chapter 3 Introducing Java. Objectives and Goals 1. Define terminology associated with object- oriented programming. 2. Explain why Java is a widely used.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
Intro. to Computer Programming Eng. Nehal A. Mohamed Spring Semester-2016.
Java Programming Fifth Edition Chapter 1 Creating Your First Java Classes.
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
The Essentials of a Java Program JavaMethods An Introduction to Object-Oriented Programming Maria Litvin Gary Litvin Copyright © 2003 by Maria Litvin,
Introducing Java Chapter 3. Why Program in Java? 0 Java was developed by Sun Microsystems. It is a widely used high-level programming language. 0 One.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Computer Programming Your First Java Program: HelloWorld.java.
Dept of Computer Science University of Maryland College Park
Programming Languages
Chapter 1 Introduction to Computers, Programs, and Java
GC101 Introduction to computer and program
CSCI-235 Micro-Computer Applications
Introduction to.
History of ‘C’ Root of the morden language is ALGOL It’s first
Java programming lecture one
Understand the Programming Process
Chapter 1 Coding Introduction.
C# Programming: From Problem Analysis to Program Design
Programming Vocabulary.
High Level Programming Languages
Unit 1: Introduction Lesson 1: PArts of a java program
Chapter 3 Classes and Objects
Unit-1 Introduction to Java
Chapter 2- Visual Basic Schneider
The Programming Process
Understand the Programming Process
A programming language
ICT Programming Lesson 1:
ICT Gaming Lesson 2.
CPS120: Introduction to Computer Science
C Programming Language
Introduction to Programming - 1
Dasar-Dasar Pemrograman 2: Java Basics
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Structural Program Development: If, If-Else
Presentation transcript:

Introduction Java Chapter 3

Java Developed by Sun Microsystem High-level programming language One reason for its wide-spread use is the ability to create platform-independent applications.

Object, Classes, & Packages An object consists of related data and the instructions for performing actions on that data. A class defines the type of data actions that will be associated with an object of that class. A package, sometimes called a library, is a group of related classes.

Object, Classes, & Packages Library Classes Fiction Biography Object Names of books Names of books

A Java Application Statements are a set of instructions Semicolon (;) is required to indicate the end of a statement. { } enclose related statements Start with a Package Name Define a class Define an object

Java Program Source code is the code the programmer types Compiler is used to change the program in to 0 & 1 that the computer can understand. Syntax error occurs in a statement that violates the rules of Java

Code Conventions An introductory comment should begin a program. Package names should begin with a lowercase Class names should be nouns and begins with an uppercase letter. A comment block should be included before each class.

Code Conventions Comments should not repeat what is clear from looking at the code. Statements in a method should be indented. An open curly brace { should be placed on the same line as the class or method declaration.

Planning Code One method of design is called algorithm. Pseudocode is steps written out in plain English. Flow Charts are symbols and text to give visual representation of solution Pg.66 is an example.

Hello World Use Jcreator to complete the 1st program. Pg. 61, 63, 64