CENG 161 Introduction to Computer Science Instructor: Dr. Nurdan SARAN Lab Assistant: Arzu Burçak Sönmez.

Slides:



Advertisements
Similar presentations
In Review JAVA C++ GUIs - Windows Webopedia.com.
Advertisements

JAVA Programming Environment © Juhani Välimäki 2003.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
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.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Introduction to Java.
CS0007: Introduction to Computer Programming Setting Up Java.
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
CMSC 202 Computer Science II for Majors Fall 2009 Introduction.
Types of software. Sonam Dema..
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Introduction to Java Tonga Institute of Higher Education.
1 1 1 Introduction to Java. 2 History of Java Java – Originally for intelligent consumer-electronic devices – Then used for creating Web pages with dynamic.
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
M1G Introduction to Programming 2 4. Enhancing a class:Room.
CSCI 273: Processing An Introduction. Programming Languages –An abstract "human understandable" language for telling the computer what to do –The abstract.
(C) 2010 Pearson Education, Inc. All rights reserved.  Java programs normally go through five phases  edit  compile  load  verify  execute.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
 2003 Prentice Hall, Inc. All rights reserved. 1 Java Training Course Dr. H.E. Dunsmore Purdue University Java – How to Program, Deitel (5 th Edition)
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
Lesson 6. GCSE Computing – programming languages Candidates should be able to:  describe common tools and facilities available in an integrated development.
Computer Programming 12 Mr. Jean March 19 th, 2013.
Introduction to the Java Virtual Machine 井民全. JVM (Java Virtual Machine) the environment in which the java programs execute The specification define an.
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.
Session One Introduction. Personal Introduction Role of programmers Robot Examination HUD & HID Uploading Code.
UCSC All rights reserved. No part of this material may be reproduced and sold. 1 IT1202-Fundamentals Of Programming (Using JAVA) Interacting with.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
FRST JAVA PROGRAM. Getting Started with Java Programming A Simple Java Application Compiling Programs Executing Applications.
Java Environment CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
1 Chapter 1 Introduction to Java. 2 History of Java Java Originally for _________________________ devices Then used for creating Web pages with __________________________.
Java Basics - Prashant Nagaraddi. Features of Java n Java syntax is similar to C/C++ but there are many differences too n Java is strongly typed like.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
Intro and Review Welcome to Java. Introduction Java application programming Use tools from the JDK to compile and run programs. Videos at
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
CSCI Processing CSCI Introduction to Algorithm Design An Introduction.
Fall 2006Slides adapted from Java Concepts companion slides1 Introduction Advanced Programming ICOM 4015 Lecture 1 Reading: Java Concepts Chapter 1.
Getting started with Programming using IDE. JAVA JAVA IS A PROGRAMMING LANGUAGE AND A PLATFORM. IT CAN BE USED TO DELIVER AND RUN HIGHLY INTERACTIVE DYNAMIC.
I Power Higher Computing Software Development Development Languages and Environments.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
Chapter 1 Introduction. Chapter Goals To understand the activity of programming To learn about the architecture of computers To learn about machine code.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Getting Started With Java September 22, Java Bytecode  Bytecode : is a highly optimized set of instructions designed to be executed by the Java.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
Programming Objectives What is a programming language? Difference between source code and machine code What is python? – Where to get it from – How to.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
1 1 1 Introduction to Java. 2 History of Java Java – Originally for intelligent consumer-electronic devices – Then used for creating Web pages with dynamic.
Computer Programming Week 1: The Basics of CP 1 st semester 2012 School of Information Technology Website:
Introduction to Programming (CS 201) Lecture 01 - Introduction.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Basic Concepts: computer, program, programming …
Lecture 1b- Introduction
Before You Begin Nahla Abuel-ola /WIT.
Writing, Compiling and Running a C program
Introduction to Programming (CS 201)
An introduction to programming Created by Dr. Randy Pausch
Introduction to Java Dept. Business Computing University of Winnipeg
Assembler, Compiler, Interpreter
Getting Started ARCS Lab..
Tonga Institute of Higher Education
How to Run a Java Program
Introduction to Algorithm Design
Assembler, Compiler, Interpreter
Review of Previous Lesson
Presentation transcript:

CENG 161 Introduction to Computer Science Instructor: Dr. Nurdan SARAN Lab Assistant: Arzu Burçak Sönmez

Requirements To write your first program, you'll need: The Java SE Development Kit – For Microsoft Windows, Solaris OS, and Linux: Java SE Downloads page Java SE Downloads page The NetBeans IDE – For all platforms: NetBeans IDE Downloads pageNetBeans IDE Downloads page

Developing a Java program

Creating a program A Java program is nothing more than a sequence of characters stored in a file with a.java extension You can use any text editor for this task, or you can use one of the more sophisticated program development environments

Developing a Java program

Compiling a program Programming languages are designed to be best understood by the programmer The computer’s language is far more primitive than Java A compiler is an application that translates a program from the Java language to a language more suitable for executing on the computer. The compiler takes a file with a.java extension as input (your program) and produces a file with the same name but with a.class extension (the computer-language version)

Developing a Java program

Executing a program Once you compile the program, you can run it Your computer follows your instructions A part of the Java system known as the Java Virtual Machine (the JVM) directs your computer to follow your instructions

Create an IDE Project Launch the NetBeans IDE. – On Microsoft Windows systems, you can use the NetBeans IDE item in the Start menu In the NetBeans IDE, choose File -> New Project.

Create an IDE Project In the New Project wizard, expand the Java category and select Java Application as shown in the following figure:

Create an IDE Project In the Name and Location page of the wizard, do the following (as shown in the figure below):

Create an IDE Project The project is created and opened in the IDE.

Your First Program This is a simple Java code Write the code and run it in order to see what happens

The showMessageDialog Method