CT 229. CT229 Lecture Notes. Labs. Tutorials. Lecture Notes. Programming II CT229. Objectives for CT229. IT Department NUI Galway
|
|
- Mildred Crawford
- 6 years ago
- Views:
Transcription
1 Lecture Notes CT 229 Programming II Lecture notes, Sample Programs, Lab Assignments and Tutorials will be available for download at: Lecturer: Dr Ted Scully IT Department NUI Galway Note: Downloading lecture notes is not a substitute for attendance at lectures. Additional material will be covered in lectures that does not appear in the lecture notes. Any Problems -> Edward.Scully@nuigalway.ie 09/09/2006 CT229 09/09/2006 CT229 1 CT229 Labs 2-Semester Course: Regular Lab Assignments Practical Lab Exam (December) Tutorials Marks awarded for lab assignments and lab exam ~20% for assignments/lab exam, rest for written exam Lab Sessions: 2 hours/week BSc(IT) Weds Lab101 (4-6) BSc(P&A) Weds Lab101 (4-6) BE(EE) Thurs Lab101 (4-6) BE(E&CE) Thurs Lab101 (4-6) Labs start on Weds 13 th of Sept 09/09/2006 CT /09/2006 CT229 3 Tutorials Objectives for CT229 Tutorials: 1hr/week BSc(IT) Thurs IT203 (12-1) BSc(P&A) Thurs IT203 (12-1) BE(EE) Tues AC213 (12-1) BE(E&CE) Tues AC213 (12-1) Tutorials will commence in a few weeks Build on your knowledge of programming languages Provide you with a comprehensive understanding of the features of the Java programming language Provide you with experience of developing Java programs Show you how 'real world' algorithms and data structures are implemented and used in Java Introduce you to professional software coding techniques 09/09/2006 CT /09/2006 CT
2 Other Details Course Content (1) Recommended Reading: "Data Structures and Algorithms In Java", Goodrich & Tamassia, Wiley Java: How to Program, Deitel & Deitel, Prentice Hall (General-purpose Java book) Numerous online resources and examples ( Others: see library Notes and lectures! Overview of the Java language Syntax (Compared to C) Object Oriented Programming Composition, Inheritance, Polymorphism Interfaces and Abstract Classes Techniques to Analyse Algorithms Using Recursion List-Based Data Structures Queues; Stacks; Linked lists 09/09/2006 CT /09/2006 CT229 7 Course Content (2) What is Java Hash Tables Hashing functions; Collision processing Comparisons with other data structures Good Programming Practice Sorting and Searching Algorithms Trees Binary trees; tree algorithms; depth-first and breadthfirst searching; balanced trees; AVL trees Priority Queues and Heaps Introduction to Graphs Java is a high-level, third generation programming language Syntax based on C/C++ Designed by Sun Microsystems Publicly announced in 1995 Launch of Java coincided with increase in popularity of WWW Sun decided to apply Java technology to downloadable behaviour for Web browsers and servers Clearly a matter of the right capability being available at the right time! 09/09/2006 CT /09/2006 CT229 9 Turning a Java Program into Machine Code Compiling a Java Program All source code is first written in plain text files ending with the.java extension Source files are then compiled into.class files by the javac compiler A.class file does not contain code that is native to your processor; it instead contains bytecodes Java Interpreter (called Java Virtual Machine) converts bytecode into machine code Happens every time you run program Need different JVM for each type of architecture: run-time executable, available on almost all platforms 09/09/2006 CT /09/2006 CT
3 Running a Java Program Java Virtual Machine 09/09/2006 CT /09/2006 CT The Java Platform What is the Java Application Programming Interface (API)? Java Platform consists of The Java Virtual Machine The Java Application Programming Interface (API) The Java API is a large software library that can be utilized by any Java program. It provides many useful capabilities for a java program such as file handling, graphics etc. (Can be thought of as a larger version of the.h libraries in the C programming language) It is grouped into libraries of related classes and interfaces; these libraries are known as packages. API Specification can be found on (for example api spec for J2SE can found at ) 09/09/2006 CT /09/2006 CT What are the advantage of using the Java Programming Language? What are the advantages of Java? Simple Object-oriented Safe Multi-Threaded Platform Independent High Performance 09/09/2006 CT /09/2006 CT
4 Java is Simple Java is Object Oriented A language that can be easily programmed without extensive programmer experience. Easy to interpret written code Syntax is straightforward and similar to that of C/C++ The fundamental concepts of Java technology are easily understood. Therefore, programmers can be productive from the very beginning. Employs automatic memory allocation and deallocation. No more alloc, free functions ( It is estimated that half of the bugs in C and C++ occur due to the allocation and deallocation of memory). The Object Oriented paradigm provides a level of abstraction for programmers. Programmers can conceptualise and implement code in terms of objects. In object-oriented programs data is represented by objects. Objects have two sections: Fields (instance variables) are the attributes of an object. They tell you what an object is. Methods tell you what function and object can perform 09/09/2006 CT /09/2006 CT Java is Safe Java is Multi-Threaded One of the primary objectives of java was to provide a programming language that would be secure from outside interference Java provides security within the language and the run-time system. Unlike C/C++, Java programs can t arbitrarily access addresses in memory. Garbage collector automatically deallocates memory when it is no longer needed. Java implements robust exception handling. That is, the execution of a program can catch and handle errors without crashing the program. Java provides the means to build applications with many concurrent threads of activity. A single java program may spawn multiple processes that share CPU time, giving the impression that these processes are running in parallel. Therefore a single Java program can have many different threads executing independently and continuously. Multi-threaded enabled applications can be difficult to construct and debug!! 09/09/2006 CT /09/2006 CT Java is Platform Independent Java is Platform Independent As previously mentioned a.java file is compiled by the javac compiler into a.class file, which contains bytecode. The java virtual machine (JVM) can then translate this into the executable machine code. Because the JVM is available for many different operating systems, the same.class files are capable of running on Microsoft Windows, the Solaris Operating System (Solaris OS), Linux, etc.. Write once, run anywhere This means the.class file is platform independent. I can run the same.class file on any platform that has a JVM. 09/09/2006 CT /09/2006 CT
5 High Performance Applications and Applets Java byte codes can be compiled on the fly to code that rivals C++ in speed using a just-in-time compiler A just-in-time compiler Bytecode compilation is the first step, reducing source code to a portable and optimizable intermediate representation When the code is executed, the JVM translates it into native machine code. This can be done on a per-file or per-function basis: functions can be compiled only when they are about to be executed (hence the name "just-in-time"). With Java, you can write Applications and Applets Applications: Standard, stand-alone programs Require a main() method in your code Applets: Programs embedded in a Web browser Web browser performs function of virtual machine Run by viewing a HTML page that has a link to the applet: downloaded along with text & graphics Run automatically on download: potential security risk! Limited functionality: e.g. disk access Applets are written to adhere to specific requirements: details later 09/09/2006 CT /09/2006 CT A Simple Java Program Explanation /* Simple Java program that prints a Hello message */ /* Ted Scully, Sept 2006 */ public class Hello { public static void main(string[] args) { System.out.println("Hello World!"); /* Simple Java program that prints a Hello message */ /* Ted Scully, Sept 2006 */ Comments: ignored by Java compiler public class Hello Begins a class definition Every Java program has at least one public class Body of the class is contained between { and public static void main(string[] args) Begins a method definition Every Java program has a method called main Definition of main method is always just like this 09/09/2006 CT /09/2006 CT Explanation Java Syntax V s C Syntax When program is run, it starts by executing commands in main, in sequence In this program, only 1 line in main The body of main is between { and Note: these parentheses are nested inside the others System.out.println("Hello World!"); Writes Hello World! to the system standard output When you run this program from the Command Prompt, the line is displayed in it First marks the end of main definition Second marks the end of Hello class definition 09/09/2006 CT /09/2006 CT
6 Writing a Program Compiling and Running Use a text editor Notepad, Textpad, EditPlus, other... Save the file as Hello.java File name must be same as main class name The extension is always.java Important: Java is case-sensitive (like C) Programs themselves, commands, file names Use indentation Put a tab at the start of lines inside the first { 2 tabs for lines inside 2 sets of { Appropriate spaces and indentation improve code legibility Java Developers Kit (JDK) Downloadable from Sun javac - Java Compiler java - Java Interpreter (for standalone programs) javadoc - Java Document Generator javah - C File Generator javap - Java class disassembler jdb - Java Debugger appletviewer - Useful if you have no WWW browser These are all console (DOS) programs Graphical Java development environments also available 09/09/2006 CT /09/2006 CT Compiling and Running Basic Java Development To begin: Open a Command Prompt window Change to the directory containing your program (e.g. cd c:\myprogs) To compile your Java program: javac Hello.java Include the file extension Any compilation errors will be displayed with line numbers This produces Hello.class (bytecode) To run it: java Hello Leave off the.class extension As you have seen in the previous slides you need three separate tools to develop a basic java program. You need a tool to: Write the source code (Notepad, Textpad, etc.) Compile that source code into java bytecode (javac compiler) Execute the bytecode (java) Alternative: Write, compile and execute your java code in one program called an IDE (Integrated Development Environment) 09/09/2006 CT /09/2006 CT Java IDE Second Java Program IDE: Integrated Development Environment Editor, compiler, debugger, etc. Graphical user interface Aid productivity Some IDE s Borland JBuilder Symantec VisualCafe Microsoft Visual J++ Blue J ( Eclipse ( Program to Calculate Employee s Total Week s Wages: 1.Look up the employee s pay rate (rate) 2.Determine the number of hours worked (hrs) in week 3.If no. of hours worked < or = 40 then regular wages (wage) = hrs*rate and overtime pay (over) = 0 4.If hrs > 40 then wage = 40*Rate and overtime pay (over) = hrs - 40) * (1.5 * rate) 5.Total Wages (total) = wage + over 09/09/2006 CT /09/2006 CT
7 The Program The Program import javax.swing.joptionpane; // Dialog box methods public class Wages { public static void main(string[] args) { double rate, hrs, over, wage, total; String ratestr, hoursstr; /* Get data in string form: convert to double */ ratestr = JOptionPane.showInputDialog("Enter Hourly Rate:"); rate = Double.parseDouble(rateStr); hoursstr = JOptionPane.showInputDialog("Enter Hours Worked:"); hrs = Double.parseDouble(hoursStr); if (hrs <= 40) { wage = rate * hrs; over = 0; else { wage = rate * 40; over = (hrs - 40) * 1.5 * rate; total = wage + over; JOptionPane.showMessageDialog (null, Total weekly wages are " + total); System.exit(0); // Terminate program 09/09/2006 CT /09/2006 CT Main Features import javax.swing.joptionpane; Loads classes from Java API that program will use javax.swing is a graphical user interface package JOptionPane is a class in package for displaying msg boxes double rate, hrs, over, wage, total; String ratestr, hoursstr; Declares existence of four variables that can hold numerical data ( double-precision floating-point ), and two variables that can hold string (i.e. text) data ratestr = JOptionPane.showInputDialog("Enter Hourly Rate:"); Invokes a method called showinputdialog, which is part of the JOptionPane class (defined javax.swing package) Displays input box with text Enter Hourly Rate ratestr is set to whatever text the user types in Main Features rate = Double.parseDouble(rateStr); parsedouble is a method in Double class, that converts text ( 123 ) to a double number (123.0) Double is a class defined in the Java language package (java.lang); imported automatically if (hrs <= 40) Code to make a decision: which lines will be executed next depends on the data in the variable called hrs Exactly like C total = wage + over; Sets total equal to the sum of wage and over This line is after the if-block; it is executed after whichever of the previous blocks of code is executed 09/09/2006 CT /09/2006 CT Main Features JOptionPane.showMessageDialog (null, "Total weekly wages are " + total); Method that displays a message box Two arguments: 1: usually null 2: the text to display The + joins text; automatically converts numbers to text command (statement) can be split over more than one line The ; indicates the end of a statement System.exit(0); Method of the System class: terminates the program Required for graphical programs Like Double, System is part of java.lang package, which is imported automatically at the start of the program 09/09/2006 CT
CT 229 Fundamentals of Java Syntax
CT 229 Fundamentals of Java Syntax 19/09/2006 CT229 New Lab Assignment Monday 18 th Sept -> New Lab Assignment on CT 229 Website Two Weeks for Completion Due Date is Oct 1 st Assignment Submission is online
More informationIntroduction to Java. Nihar Ranjan Roy. https://sites.google.com/site/niharranjanroy/
Introduction to Java https://sites.google.com/site/niharranjanroy/ 1 The Java Programming Language According to sun Microsystems java is a 1. Simple 2. Object Oriented 3. Distributed 4. Multithreaded 5.
More informationCertified Core Java Developer VS-1036
VS-1036 1. LANGUAGE FUNDAMENTALS The Java language's programming paradigm is implementation and improvement of Object Oriented Programming (OOP) concepts. The Java language has its own rules, syntax, structure
More information1. Introduction. Java. Fall 2009 Instructor: Dr. Masoud Yaghini
1. Introduction Java Fall 2009 Instructor: Dr. Masoud Yaghini Outline Introduction Introduction The Java Programming Language The Java Platform References Java technology Java is A high-level programming
More informationGoals. Java - An Introduction. Java is Compiled and Interpreted. Architecture Neutral & Portable. Compiled Languages. Introduction to Java
Goals Understand the basics of Java. Introduction to Java Write simple Java Programs. 1 2 Java - An Introduction Java is Compiled and Interpreted Java - The programming language from Sun Microsystems Programmer
More informationNotes of the course - Advanced Programming. Barbara Russo
Notes of the course - Advanced Programming Barbara Russo a.y. 2014-2015 Contents 1 Lecture 2 Lecture 2 - Compilation, Interpreting, and debugging........ 2 1.1 Compiling and interpreting...................
More informationIntroduction to JAVA Programming Language
Introduction to JAVA Programming Language Lecture 2 Based on Slides of Dr. Norazah Yusof 1 Origins of the Java Language Patrick Naughton and Jonathan Payne at Sun Microsystems developed a Web browser that
More informationTTh 9.25 AM AM Strain 322
TTh 9.25 AM - 10.40 AM Strain 322 1 Questions v What is your definition of client/server programming? Be specific. v What would you like to learn in this course? 2 Aims and Objectives v Or, what will you
More informationIntroduction to Java
Introduction to Java Module 1: Getting started, Java Basics 22/01/2010 Prepared by Chris Panayiotou for EPL 233 1 Lab Objectives o Objective: Learn how to write, compile and execute HelloWorld.java Learn
More informationIndex. Course Outline. Grading Policy. Lab Time Distribution. Important Instructions
Index Course Outline Grading Policy Lab Time Distribution Important Instructions 2 Course Outline Week Topics 1 - History and Evolution of Java - Overview of Java 2 - Datatypes - Variables 3 - Arrays 4
More informationII. Compiling and launching from Command-Line, IDE A simple JAVA program
Contents Topic 01 - Java Fundamentals I. Introducing JAVA II. Compiling and launching from Command-Line, IDE A simple JAVA program III. How does JAVA work IV. Review - Programming Style, Documentation,
More informationChapter 1 Introduction to Computers, Programs, and Java. What is a Computer? A Bit of History
Chapter 1 Introduction to Computers, Programs, and Java CS170 Introduction to Computer Science 1 What is a Computer? A machine that manipulates data according to a list of instructions Consists of hardware
More informationIntroduction to Java. Lecture 1 COP 3252 Summer May 16, 2017
Introduction to Java Lecture 1 COP 3252 Summer 2017 May 16, 2017 The Java Language Java is a programming language that evolved from C++ Both are object-oriented They both have much of the same syntax Began
More informationChapter 1 Introduction to Computers, Programs, and Java
Chapter 1 Introduction to Computers, Programs, and Java 1.1 What are hardware and software? 1. A computer is an electronic device that stores and processes data. A computer includes both hardware and software.
More informationLecture 1: Overview of Java
Lecture 1: Overview of Java What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++ Designed for easy Web/Internet applications Widespread
More informationCHAPTER 1. Introduction to JAVA Programming
CHAPTER 1 Introduction to JAVA Programming What java is Java is high level You can use java to write computer applications that computes number,process words,play games,store data, etc. History of Java.
More informationTutorial 1 CSC 201. Java Programming Concepts عؾادئماظربجمةمبادؿكدامماجلاصا
Tutorial 1 CSC 201 Java Programming Concepts عؾادئماظربجمةمبادؿكدامماجلاصا م- م- م- م- م- Chapter 1 1. What is Java? 2. Why Learn Java? a. Java Is Platform Independent b. Java is Easy to learn 3. Programming
More informationIQTIDAR ALI Lecturer IBMS Agriculture University Peshawar
IQTIDAR ALI Lecturer IBMS Agriculture University Peshawar Upon completing the course, you will understand Create, compile, and run Java programs Primitive data types Java control flow Operator Methods
More informationGETTING STARTED. The longest journey begins with a single step. In this chapter, you will learn about: Compiling and Running a Java Program Page 2
ch01 11/17/99 9:16 AM Page 1 CHAPTER 1 GETTING STARTED The longest journey begins with a single step. CHAPTER OBJECTIVES In this chapter, you will learn about: Compiling and Running a Java Program Page
More informationCSE 421 Course Overview and Introduction to Java
CSE 421 Course Overview and Introduction to Java Computer Science and Engineering College of Engineering The Ohio State University Lecture 1 Learning Objectives Knowledgeable in how sound software engineering
More informationAssoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.
Assoc. Prof. Dr. Marenglen Biba (C) 2010 Pearson Education, Inc. All rights reserved. Course: Object-Oriented Programming with Java Instructor : Assoc. Prof. Dr. Marenglen Biba Office : Faculty building
More informationJava Professional Certificate Day 1- Bridge Session
Java Professional Certificate Day 1- Bridge Session 1 Java - An Introduction Basic Features and Concepts Java - The new programming language from Sun Microsystems Java -Allows anyone to publish a web page
More informationJava is a high-level programming language originally developed by Sun Microsystems and released in Java runs on a variety of
Java is a high-level programming language originally developed by Sun Microsystems and released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.
More informationLecture 1: Introduction to Java
Lecture 1: Introduction to Java 1 Programs Computer programs, known as software, are instructions to the computer. You tell a computer what to do through programs. Without programs, a computer is an empty
More informationLearning objectives. The Java Environment. Java timeline (cont d) Java timeline. Understand the basic features of Java
Learning objectives The Java Environment Understand the basic features of Java What are portability and robustness? Understand the concepts of bytecode and interpreter What is the JVM? Learn few coding
More informationIntroduction to Java Programming
Introduction to Java Programming Lecture 1 CGS 3416 Spring 2017 1/9/2017 Main Components of a computer CPU - Central Processing Unit: The brain of the computer ISA - Instruction Set Architecture: the specific
More informationAdvanced Object-Oriented Programming Introduction to OOP and Java
Advanced Object-Oriented Programming Introduction to OOP and Java Dr. Kulwadee Somboonviwat International College, KMITL kskulwad@kmitl.ac.th Course Objectives Solidify object-oriented programming skills
More informationObject Oriented Concepts and Programming (CSC244) By Dr. Tabbasum Naz
Object Oriented Concepts and Programming (CSC244) By Dr. Tabbasum Naz tabbasum.naz@ciitlahore.edu.pk Course Outline Course Title Object Oriented Concepts and Course Code Credit Hours 4(3,1) Programming
More informationProject 1. Java Control Structures 1/17/2014. Project 1 and Java Intro. Project 1 (2) To familiarize with
Project 1 and Java Intro Sharma Chakravarthy Information Technology Laboratory (IT Lab) Computer Science and Engineering Department The University of Texas at Arlington, Arlington, TX 76019 Email: sharma@cse.uta.edu
More informationBefore you start with this tutorial, you need to know basic Java programming.
JDB Tutorial 1 About the Tutorial The Java Debugger, commonly known as jdb, is a useful tool to detect bugs in Java programs. This is a brief tutorial that provides a basic overview of how to use this
More informationLesson 01 Introduction
Lesson 01 Introduction MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz Lecturer in Management & IT M.Sc. In IS (SLIIT), PGD in IS (SLIIT), BBA (Hons.) Spl. in IS (SEUSL), MCP Programs Computer
More informationCourse information. Petr Hnětynka 2/2 Zk/Z
JAVA Introduction Course information Petr Hnětynka hnetynka@d3s.mff.cuni.cz http://d3s.mff.cuni.cz/~hnetynka/java/ 2/2 Zk/Z exam written test zápočet practical test in the lab max 5 attempts zápočtový
More informationChapter 1 Introduction to Java
Chapter 1 Introduction to Java 1 Why Java? The answer is that Java enables users to develop and deploy applications on the Internet for servers, desktop computers, and small hand-held devices. The future
More informationProgramming. Syntax and Semantics
Programming For the next ten weeks you will learn basic programming principles There is much more to programming than knowing a programming language When programming you need to use a tool, in this case
More informationPace University. Fundamental Concepts of CS121 1
Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction
More information3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS)
GETTING STARTED: YOUR FIRST JAVA APPLICATION 15 3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS) GETTING STARTED: YOUR FIRST JAVA APPLICATION Checklist: The most recent version of Java SE Development
More informationIntroduction to Visual Basic and Visual C++ Introduction to Java. JDK Editions. Overview. Lesson 13. Overview
Introduction to Visual Basic and Visual C++ Introduction to Java Lesson 13 Overview I154-1-A A @ Peter Lo 2010 1 I154-1-A A @ Peter Lo 2010 2 Overview JDK Editions Before you can write and run the simple
More informationChapter 1 Introduction to Computers, Programs, and Java
Chapter 1 Introduction to Computers, Programs, and Java 1 Objectives To review computer basics, programs, and operating systems ( 1.2-1.4). To explore the relationship between Java and the World Wide Web
More informationCS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG
CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG 1 Notice Class Website http://www.cs.umb.edu/~jane/cs114/ Reading Assignment Chapter 1: Introduction to Java Programming
More information12/22/11. Java How to Program, 9/e. Help you get started with Eclipse and NetBeans integrated development environments.
Java How to Program, 9/e Education, Inc. All Rights Reserved. } Java application programming } Use tools from the JDK to compile and run programs. } Videos at www.deitel.com/books/jhtp9/ Help you get started
More informationObjectives. Problem Solving. Introduction. An overview of object-oriented concepts. Programming and programming languages An introduction to Java
Introduction Objectives An overview of object-oriented concepts. Programming and programming languages An introduction to Java 1-2 Problem Solving The purpose of writing a program is to solve a problem
More informationCOMP6700/2140 JDK Tools
COMP6700/2140 JDK Tools Alexei B Khorev and Joshua Milthorpe Research School of Computer Science, ANU February 2017 Alexei B Khorev and Joshua Milthorpe (RSCS, ANU) COMP6700/2140 JDK Tools February 2017
More informationJava Programming Language Mr.Rungrote Phonkam
2 Java Programming Language Mr.Rungrote Phonkam rungrote@it.kmitl.ac.th Contents 1. Intro to Java. 2. Java Platform 3. Java Language 4. JDK 5. Programming Steps 6. Visual Programming 7. Basic Programming
More informationCS 231 Data Structures and Algorithms, Fall 2016
CS 231 Data Structures and Algorithms, Fall 2016 Dr. Bruce A. Maxwell Department of Computer Science Colby College Course Description Focuses on the common structures used to store data and the standard
More informationChapter 1 Introduction to Computers, Programs, and Java
Chapter 1 Introduction to Computers, Programs, and Java 1 Programs Computer programs, known as software, are instructions to the computer. You tell a computer what to do through programs. Without programs,
More informationIntroduction to Computation and Problem Solving
Class 1: Introduction Introduction to Computation and Problem Solving Prof. Steven R. Lerman and Dr. V. Judson Harward Handouts for Today Course syllabus Academic Honesty Guidelines Laptop request form
More information2 rd class Department of Programming. OOP with Java Programming
1. Structured Programming and Object-Oriented Programming During the 1970s and into the 80s, the primary software engineering methodology was structured programming. The structured programming approach
More informationhttp://java.sun.com/docs/books/tutorial/getstarted/index.html1 Getting Started THIS chapter gives a quick introduction to the Java TM technology. First, we explain what the Java platform is and what it
More informationBuilding Java Programs. Introduction to Programming and Simple Java Programs
Building Java Programs Introduction to Programming and Simple Java Programs 1 A simple Java program public class Hello { public static void main(string[] args) { System.out.println("Hello, world!"); code
More informationJDB - QUICK GUIDE JDB - INTRODUCTION
http://www.tutorialspoint.com/jdb/jdb_quick_guide.htm JDB - QUICK GUIDE Copyright tutorialspoint.com JDB - INTRODUCTION Debugging is a technical procedure to find and remove bugs or defects in a program
More information1. What is Jav a? simple
1. What is Jav a? Thanks to Java is a new programming language developed at Sun under the direction of James Gosling. As far as possible it is based on concepts from C, Objective C and C++. Java is interpreted
More informationCOT 3530: Data Structures. Giri Narasimhan. ECS 389; Phone: x3748
COT 3530: Data Structures Giri Narasimhan ECS 389; Phone: x3748 giri@cs.fiu.edu www.cs.fiu.edu/~giri/teach/3530spring04.html Evaluation Midterm & Final Exams Programming Assignments Class Participation
More informationIntroduction to Computers and Java. Objectives. Outline. Harald Gall, Prof. Dr. Institut für Informatik Universität Zürich.
Introduction to Computers and Java Harald Gall, Prof. Dr. Institut für Informatik Universität Zürich http://seal.ifi.uzh.ch 2008 W. Savitch, F.M. Carrano, Pearson Prentice Hall Objectives! Overview computer
More informationIntroduction to Computers and Java
Introduction to Computers and Java Harald Gall, Prof. Dr. Institut für Informatik Universität Zürich http://seal.ifi.uzh.ch 2008 W. Savitch, F.M. Carrano, Pearson Prentice Hall Objectives! Overview computer
More informationIntroduction to Computers and Java
Introduction to Computers and Java Harald Gall, Prof. Dr. Institut für Informatik Universität Zürich http://seal.ifi.uzh.ch 2008 W. Savitch, F.M. Carrano, Pearson Prentice Hall Objectives Overview computer
More informationCT 229 Java Syntax Continued
CT 229 Java Syntax Continued 29/09/2006 CT229 Lab Assignments One Week Extension for Lab Assignment 1. Due Date: Oct 8 th Before submission make sure that the name of each.java file matches the name given
More informationCourse Outline. Introduction to java
Course Outline 1. Introduction to OO programming 2. Language Basics Syntax and Semantics 3. Algorithms, stepwise refinements. 4. Quiz/Assignment ( 5. Repetitions (for loops) 6. Writing simple classes 7.
More informationSoftware Installation for CS121
Software Installation for CS121 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University August 26, 2005 1 Installation of Java J2SE 5 SDK 1. Visit Start Settings Control Panel
More informationIntroduction to Computers and Java. Objectives. Outline. Harald Gall, Prof. Dr. Institut für Informatik Universität Zürich.
Introduction to Computers and Java Harald Gall, Prof. Dr. Institut für Informatik Universität Zürich http://seal.ifi.uzh.ch 2008 W. Savitch, F.M. Carrano, Pearson Prentice Hall Objectives Overview computer
More informationIntroduction Welcome! Before you start Course Assessments The course at a glance How to pass M257
Introduction Unit 1: Java Everywhere Prepared by: Dr. Abdallah Mohamed, AOU-KW 1 Introduction Welcome! Before you start Course Assessments The course at a glance How to pass M257 1. Java background 2.
More informationChapter 2 First Java Programs
First Java Programs Fundamentals of Java: AP Computer Science Essentials, 4th Edition 1 Objectives Why is Java an important programming language? What is the Java virtual machine and byte code? What are
More informationEclipse Tutorial. For Introduction to Java Programming By Y. Daniel Liang
Eclipse Tutorial For Introduction to Java Programming By Y. Daniel Liang This supplement covers the following topics: Getting Started with Eclipse Choosing a Perspective Creating a Project Creating a Java
More informationOutline. Introduction to Java. What Is Java? History. Java 2 Platform. Java 2 Platform Standard Edition. Introduction Java 2 Platform
Outline Introduction to Java Introduction Java 2 Platform CS 3300 Object-Oriented Concepts Introduction to Java 2 What Is Java? History Characteristics of Java History James Gosling at Sun Microsystems
More informationCSC116: Introduction to Computing - Java
CSC116: Introduction to Computing - Java Intro to CSC116 Course Information Introductions Website Syllabus Computers First Java Program Text Editor Helpful Commands Java Download Course Instructor: Instructors
More informationGetting Started (1.8.7) 9/2/2009
2 Getting Started For the examples in this section, Microsoft Windows and Java will be used. However, much of the information applies to other operating systems and supported languages for which you have
More informationNetworks Programming Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000)
Networks Programming Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000) armahmood786@yahoo.com alphasecure@gmail.com alphapeeler.sf.net/pubkeys/pkey.htm http://alphapeeler.sourceforge.net pk.linkedin.com/in/armahmood
More information1. Java is the fastest growing programming language in the world.
Chapter 2 First Java Programs TRUE/FALSE 1. Java is the fastest growing programming language in the world. T PTS: 1 REF: 31 2. Java programs cannot be run on different types of computers unless code changes
More informationChapter 1 Introduction to Computers, Programs, and Java
Chapter Introduction to Computers, Programs, and Java. Introduction Java is the Internet program language Why Java? The answer is that Java enables user to deploy applications on the Internet for servers,
More informationLife Without NetBeans
Life Without NetBeans Part A Writing, Compiling, and Running Java Programs Almost every computer and device has a Java Runtime Environment (JRE) installed by default. This is the software that creates
More informationCSC116: Introduction to Computing - Java
CSC116: Introduction to Computing - Java Course Information Introductions Website Syllabus Computers First Java Program Text Editor Helpful Commands Java Download Intro to CSC116 Instructors Course Instructor:
More informationJavac and Eclipse tutorial
Javac and Eclipse tutorial Author: Balázs Simon, BME IIT, 2013. Contents 1 Introduction... 2 2 JRE and JDK... 2 3 Java and Javac... 2 4 Environment variables... 3 4.1 Setting the environment variables
More informationLab # 2. For today s lab:
1 ITI 1120 Lab # 2 Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot 1 For today s lab: Go the course webpage Follow the links to the lab notes for Lab 2. Save all the java programs you
More informationCS 11 java track: lecture 1
CS 11 java track: lecture 1 Administrivia need a CS cluster account http://www.cs.caltech.edu/ cgi-bin/sysadmin/account_request.cgi need to know UNIX www.its.caltech.edu/its/facilities/labsclusters/ unix/unixtutorial.shtml
More informationChapter 1 Introduction to Computers, Programs, and Java
Chapter 1 Introduction to Computers, Programs, and Java 1 Objectives To understand computer basics, programs, and operating systems ( 1.2 1.4). To describe the relationship between Java and the World Wide
More informationC++ Spring Break Packet 11 The Java Programming Language
C++ Spring Break Packet 11 The Java Programming Language! Programmers write instructions in various programming languages, some directly understandable by computers and others requiring intermediate translation
More informationLesson 2: First Java Programs
Lesson 2: First Java Programs Lesson 2: First Java Programs Objectives: Discuss why Java is an important programming language. Explain the Java virtual machine and byte code. Choose a user interface style.
More informationObjectives. Chapter 1 Introduction to Computers, Programs, and Java. What is a Computer?
Chapter 1 Introduction to Computers, Programs, and Java Objectives To review computer basics, programs, and operating systems ( 12-14) To explore the relationship between Java and the World Wide Web (
More informationCompSci 125 Lecture 02
Assignments CompSci 125 Lecture 02 Java and Java Programming with Eclipse! Homework:! http://coen.boisestate.edu/jconrad/compsci-125-homework! hw1 due Jan 28 (MW), 29 (TuTh)! Programming:! http://coen.boisestate.edu/jconrad/cs125-programming-assignments!
More informationChapter 1: Introduction to Computers and Java
Chapter 1: Introduction to Computers and Java Starting Out with Java: From Control Structures through Objects Fifth Edition by Tony Gaddis Chapter Topics Chapter 1 discusses the following main topics:
More information8/23/2014. Chapter Topics. Introduction. Java History. Why Program? Java Applications and Applets. Chapter 1: Introduction to Computers and Java
Chapter 1: Introduction to Computers and Java Starting Out with Java: From Control Structures through Objects Fifth Edition by Tony Gaddis Chapter Topics Chapter 1 discusses the following main topics:
More informationCT 229. Java Syntax 26/09/2006 CT229
CT 229 Java Syntax 26/09/2006 CT229 Lab Assignments Assignment Due Date: Oct 1 st Before submission make sure that the name of each.java file matches the name given in the assignment sheet!!!! Remember:
More informationJAVA: A Primer. By: Amrita Rajagopal
JAVA: A Primer By: Amrita Rajagopal 1 Some facts about JAVA JAVA is an Object Oriented Programming language (OOP) Everything in Java is an object application-- a Java program that executes independently
More informationCT 229 Arrays Continued
CT 229 Arrays Continued 20/10/2006 CT229 Lab Assignments Current lab assignment is due today: Oct 20 th Before submission make sure that the name of each.java file matches the name given in the assignment
More informationClass List. Java Must Have. Class Goals. Class Goals. Schedule
Class List Accelerated Introduction to CS Using Java 5 2004 Illinois Institute of Technology Schedule CS -201-071 M 06:25-09:05PM Rice Campus - Wheaton Room RI 148 LAB W 06:25-09:05PM CS -201-392 MW 06:25-09:05PM
More informationChapter. Focus of the Course. Object-Oriented Software Development. program design, implementation, and testing
Introduction 1 Chapter 5 TH EDITION Lewis & Loftus java Software Solutions Foundations of Program Design 2007 Pearson Addison-Wesley. All rights reserved Focus of the Course Object-Oriented Software Development
More informationCore JAVA Training Syllabus FEE: RS. 8000/-
About JAVA Java is a high-level programming language, developed by James Gosling at Sun Microsystems as a core component of the Java platform. Java follows the "write once, run anywhere" concept, as it
More informationSoftware and Programming 1
Software and Programming 1 Lab 1: Introduction, HelloWorld Program and use of the Debugger 17 January 2019 SP1-Lab1-2018-19.pptx Tobi Brodie (tobi@dcs.bbk.ac.uk) 1 Module Information Lectures: Afternoon
More informationHistory of Java. Java was originally developed by Sun Microsystems star:ng in This language was ini:ally called Oak Renamed Java in 1995
Java Introduc)on History of Java Java was originally developed by Sun Microsystems star:ng in 1991 James Gosling Patrick Naughton Chris Warth Ed Frank Mike Sheridan This language was ini:ally called Oak
More informationAbout this exam review
Final Exam Review About this exam review I ve prepared an outline of the material covered in class May not be totally complete! Exam may ask about things that were covered in class but not in this review
More informationEng. Mohammed S. Abdualal
Islamic University of Gaza Faculty of Engineering Computer Engineering Department Computer Programming Lab (ECOM 2124) Created by Eng: Mohammed Alokshiya Modified by Eng: Mohammed Abdualal Lab 1 Introduction
More informationCourse information. Petr Hnětynka 2/2 Zk/Z
JAVA Introduction Course information Petr Hnětynka hnetynka@d3s.mff.cuni.cz http://d3s.mff.cuni.cz/~hnetynka/java/ 2/2 Zk/Z exam written test zápočet practical test in the lab zápočtový program "reasonable"
More informationJava and Software Design
Introduction to Java and Software Design Jindal Consulting Chapter 1 Overview of Programming and Problem Solving Slides by Varun Jindal 1 Chapter 1 Topics Computer Programming Programming Life-Cycle Phases
More information2 Getting Started. Getting Started (v1.8.6) 3/5/2007
2 Getting Started Java will be used in the examples in this section; however, the information applies to all supported languages for which you have installed a compiler (e.g., Ada, C, C++, Java) unless
More informationBCIS 3630 Dr. GUYNES SPRING 2018 TUESDAY SECTION [JAN version] GRADER COURSE WEBSITE
COURSE WEBSITE http://www.steveguynes.com/bcis3630/bcis3630/default.html Instructor: Dr. Guynes Office: BLB 312H Phone: (940) 565-3110 Office Hours: By Email Email: steve.guynes@unt.edu TEXTBOOK: Starting
More informationCOSC 123 Computer Creativity. Introduction to Java. Dr. Ramon Lawrence University of British Columbia Okanagan
COSC 123 Computer Creativity Introduction to Java Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Key Points 1) Introduce Java, a general-purpose programming language,
More informationIntroduction to Software Development (ISD) David Weston and Igor Razgon
Introduction to Software Development (ISD) David Weston and Igor Razgon Autumn term 2013 Course book The primary book supporting the ISD module is: Java for Everyone, by Cay Horstmann, 2nd Edition, Wiley,
More informationChapter 1. Introduction
Chapter 1 Introduction Chapter Scope Introduce the Java programming language Program compilation and execution Problem solving in general The software development process Overview of object-oriented principles
More informationCS321 Languages and Compiler Design I. Winter 2012 Lecture 2
CS321 Languages and Compiler Design I Winter 2012 Lecture 2 1 A (RE-)INTRODUCTION TO JAVA FOR C++/C PROGRAMMERS Why Java? Developed by Sun Microsystems (now Oracle) beginning in 1995. Conceived as a better,
More informationSeminar report Java Submitted in partial fulfillment of the requirement for the award of degree Of CSE
A Seminar report On Java Submitted in partial fulfillment of the requirement for the award of degree Of CSE SUBMITTED TO: www.studymafia.org SUBMITTED BY: www.studymafia.org 1 Acknowledgement I would like
More informationAssoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.
Assoc. Prof. Dr. Marenglen Biba (C) 2010 Pearson Education, Inc. All rights reserved. Java application A computer program that executes when you use the java command to launch the Java Virtual Machine
More information