Introduction to Computers & Java CSS 161: Fundamentals of Computing Joe McCarthy 1.

Slides:



Advertisements
Similar presentations
1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
Advertisements

Foundations of Programming and Problem Solving Introduction.
1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore G54PRG Programming Lecture 1 Amadeo Ascó 3 Java Programming Language.
JAVA Programming Environment © Juhani Välimäki 2003.
Object Oriented Programming in Java George Mason University Fall 2011
Lesson One: The Beginning Chapter 2: Processing Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from built-in help reference.
11-Jun-15 Getting Ready for CIT Registering and labs If you are not yet registered (and want to be), be sure I have your name and student ID We.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
CENG 161 Introduction to Computer Science Instructor: Dr. Nurdan SARAN Lab Assistant: Arzu Burçak Sönmez.
Getting Ready for Java. What is Java? Java is a programming language: a language that you can learn to write, and the computer can be made to understand.
Lesson One: The Beginning
13-Jul-15 Getting Ready for Java. 2 What You Need 256 MB of RAM (512 MB or more recommended) 500 MHz Pentium or better Macintosh: must run Mac OS X, preferably.
15-Jul-15 Getting Ready for Java. What is Java? Java is a programming language: a language that you can learn to write, and the computer can be made to.
Introduction to Programming with Java, for Beginners Machine vs. Programming Language Intro to Java Edit-Compile-Run Program Process.
JAVA: An Introduction to Problem Solving & Programming, 6 th Ed. By Walter Savitch ISBN © 2012 Pearson Education, Inc., Upper Saddle River,
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
CS0007: Introduction to Computer Programming Setting Up Java.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
Java Course Outline Kumar Harshit, USW. Course Description Teaches students to program using the Java programming language with the help of the Netbeans.
COMP Computer Basics Yi Hong May 13, 2015.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
Getting Started With Java Downloading and installing software Running your first program Dr. DwyerFall 2012.
Introducing Java.
CS110/CS119 Introduction to Computing (Java)
Programming Fundamentals 2: Background/ F II Objectives – –give a non-technical overview of Java Semester 2, Background.
COMP 110: Introduction to Programming Tyler Johnson January 14, 2009 MWF 11:00AM-12:15PM Sitterson 014.
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
Session One Introduction. Personal Introduction Role of programmers Robot Examination HUD & HID Uploading Code.
CPRG 215 Introduction to Object-Oriented Programming with Java Module 1-Introduction to Java Topic 1.2 Getting the Tools and Setting Up the Development.
CSS 161 Fundamentals of Computing Introduction to Computers & Java September 26, 2012 CSS 161: Fundamentals of Computing Instructor: Uma Murthy CSS SKL.
Введение в JAVA. Java Java – язык программирования: объектно-ориентированный кроссплатформенный строго-типизированный.
INTRODUCTION TO JAVA AND ANDROID. Slide 2 Our Ecosystem Java Eclipse Android SDK.
Java and C# [this is a bonus – it is not a required lesson] ACO101: Introduction to Computer Science.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
CSS 161 Fundamentals of Computing Introduction to Computers & Java Joe McCarthy CSS 161: Fundamentals of Computing.
CSS 161 A Fundamentals of Computing Introduction September 24, 2012 Instructor: Uma Murthy CSS SKL 161 A Instructor: Joe McCarthy CSS 161: Fundamentals.
Setting Up Eclipse. What is Eclipse? Eclipse is a free, downloadable software that allows us to create, compile, and run JAVA programs.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
1 CS210 Intermediate Computing with Data Structures (Java) Saaid Baraty S-3-90.
CS Software Studio Java Lab 1 Meng-Ting Wang PLLAB, Computer Science Department, National Tsing-Hua University.
5-Jun-16 Getting Ready for Java. 2 What is Java? Java is a programming language: a language that you can learn to write, and the computer can be made.
EIE375 BlueJ: Getting Started Dr Lawrence Cheung.
29-Nov-15 Getting Ready for Java. 2 What is Java? Java is a programming language: a language that you can learn to write, and the computer can be made.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
22-July-2002cse142-13B-Development © 2002 University of Washington1 Development Tools CSE 142, Summer 2002 Computer Programming 1
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
Lecture 02. Java Virtual Machine(JVM) –set of computer software programs and data structures that use a virtual machine model for the execution of other.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Today… “Hello World” ritual. Brief History of Java & How Java Works. Introduction to Java class structure. But first, next slide shows Java is No. 1 programming.
CSCI 212 Object-Oriented Programming in Java. Prerequisite: CSCI 111 variable assignment statement while loop for loop post-increment (i++) strong typing.
การเขียนโปรแกรมภาษา จาวา Java Programming อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา Chapter 1.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
Introduction to JAVA Programming
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
COM594: Mobile Technology Practical – Week 1 Android and Android Studio.
Object Oriented Programming in
Lecture 1b- Introduction
Mobile Applications (Android Programming)
Before You Begin Nahla Abuel-ola /WIT.
A Short DOS Presentation
1. Environment Setting Minhaeng Lee.
Java programming lecture one
(Computer fundamental Lab)
Review of Previous Lesson
M S COLLEGE ART’S, COMM., SCI. & BMS
Java Coding Environment Installation & Execution guide
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
Presentation transcript:

Introduction to Computers & Java CSS 161: Fundamentals of Computing Joe McCarthy 1

Outline Introduction to Computers Introduction to Computer Programming Introduction to Java CSS 161: Fundamentals of Computing2

Computers CSS 161: Fundamentals of Computing3

Computer Hardware CSS 161: Fundamentals of Computing4

Computer Hardware CSS 161: Fundamentals of Computing5

Computer Software CSS 161: Fundamentals of Computing6

Computer Software CSS 161: Fundamentals of Computing7

Note: program must be loaded into memory in order to execute 8

Computer Memory CSS 161: Fundamentals of Computing9

Computer Memory CSS 161: Fundamentals of Computing Alternate perspectives: Key attributes: addressable / labeled locations that can store things 10

Computer Disk(s) CSS 161: Fundamentals of Computing11

Computer Disk(s) CSS 161: Fundamentals of Computing Alternate perspectives: 12

Hierarchy of Memory CSS 161: Fundamentals of Computing Variables? [CSS 422 and CSS 430 go into much further depth] 13

Hierarchy of Memory CSS 161: Fundamentals of Computing Variables: Speed Cost Size Volatility [CSS 422 and CSS 430 go into much further depth] 14

CSS 161: Fundamentals of Computing15

Fundamentals of Computing CSS 161: Fundamentals of Computing16

Fundamentals of Computer Programming CSS 161: Fundamentals of Computing17

Fundamentals of Computer Programming What is a program? CSS 161: Fundamentals of Computing18

Fundamentals of Computer Programming What is a program? What is programming? CSS 161: Fundamentals of Computing19

Fundamentals of Computer Programming What is a program? What is programming? What is a computer program? CSS 161: Fundamentals of Computing20

Fundamentals of Computer Programming What is a program? What is programming? What is a computer program? What is computer programming? CSS 161: Fundamentals of Computing21

CSS 161: Fundamentals of Computing22

CSS 161: Fundamentals of Computing FirstProgram.java FirstProgram.class javac java 23

CSS 161: Fundamentals of Computing24

[In Mac OS X Terminal window] CSS 161: Fundamentals of Computing25 d :Code joe$ ls FirstProgram* FirstProgram.java d :Code joe$ javac FirstProgram.java d :Code joe$ ls FirstProgram* FirstProgram.classFirstProgram.java d :Code joe$ java FirstProgram Hello reader. Welcome to Java. Let's demonstrate a simple calculation. 2 plus 2 is 4 d :Code joe$

[In Mac OS X Terminal window] CSS 161: Fundamentals of Computing26 d :Code joe$ ls FirstProgram* FirstProgram.java d :Code joe$ javac FirstProgram.java d :Code joe$ ls FirstProgram* FirstProgram.classFirstProgram.java d :Code joe$ java FirstProgram Hello reader. Welcome to Java. Let's demonstrate a simple calculation. 2 plus 2 is 4 d :Code joe$ Program [only] computes = 4. How can we make this more general?

CSS 161: Fundamentals of Computing27

Java Programs CSS 161: Fundamentals of Computing28

CSS 161: Fundamentals of Computing29

Java Goal: – Write once, run anywhere – JDK: Java Developers Kit – JRE: Java Runtime Environment Editions – SE: Standard Edition – EE: Enterprise Edition – ME: Micro Edition (mobile, embedded) – Embedded: flash memory, closed systems Versions – 1.0 (1992), (2006), 1.7 (2011) CSS 161: Fundamentals of Computing30

Downloading Java [optional] – Current: Version 7 update 7 (1.7u7) On Mac, requires Mac OS X or higher – Can also use Version 6 update 35 (1.6u35) Supported thru February 2013 We will be writing (developing) Java code, so we want JDK – Which includes JRE CSS 161: Fundamentals of Computing31

CSS 161: Fundamentals of Computing32

Integrated Development Environments (IDEs) Programming tools – Edit text (code) + compile + run – Graphical representations of components We’ll be using BlueJ, but you can use others CSS 161: Fundamentals of Computing netbeans.orgeclipse.orgbluej.org 33

Downloading BlueJ [optional] CSS 161: Fundamentals of Computing 34

UWB CSS Labs CSS 161: Fundamentals of Computing35

Next time (Wednesday) Get textbook Read: – Absolute Java, Section – Java: An Introduction…, Sections Recommended: Section 1.4 CSS 161: Fundamentals of Computing36