CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG

Size: px
Start display at page:

Download "CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG"

Transcription

1 CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG 1

2 Notice Class Website Reading Assignment Chapter 1: Introduction to Java Programming Homework 1 It is due this coming Sunday at 11:59 PM. I want you to write me an answering a number of questions. You must send me this from an account you use frequently. I will use this address to notify you new developments. Title of the CS/IT 114 HW 1 2

3 Review Tools for This Course You must use DrJava for all your course work You can get DrJava from You must transfer all your Java files to users3.cs.umb.edu An easy way to do this is to use FileZilla which can be download project.org/ If use a PC, can download Java from If use a PC, can download PuTTY from You must get these tool in order to do the work required for this course. If you get behind in this course, you will have a hard time catching up. 3

4 Compiled versus Interpreted Languages As I mentioned in the last class there are two types of computer languages Compiled languages Interpreted languages All computer programs start out as text files that contain instructions in a computer language. These text files are called the source code. But computers cannot understand the source code. They can only run binary files containing instructions in machine language Compiled languages use a compiler to create an executable file. Interpreted or scripting languages take a different approach. They read each line of code and execute it directly. 4

5 Compiled Languages Language like C and C++ are compiled languages A program called a compiler turns the source code file into an executable file The executable file contains machine language instructions that the computer understands But the executable file will only run on one platform If I compiled a C program on my Mac, that file would not run under Windows Compiled programs are fast and efficient 5

6 Scripting Languages Languages like Perl, Python and PHP are interpreted languages In a scripting language the source code is not compiled Instead, it is run inside a program called an interpreter. Once an interpreter has been written for a given platform... the interpreter can run any program written in that scripting language So all you have to distribute are the source code files But programs written in a scripting language run more slowly... than similar programs that are compiled 6

7 How Java Works Java takes a middle course between compiled and interpreted languages You take a Java source file and run it through the Java compiler, javac The source file must have the.java extension The compiler creates an object file with extension.class This file does not contain machine language instructions Instead it contains what are called Java bytecodes So you cannot run this.class file directly on the machine Instead you must run it inside the Java interpreter, java The Java interpreter is also called the Java Runtime Environment (JRE)... or the Java Virtual Machine (JVM) 7

8 How Java Works Java interpreters have been written for all major platforms That means you can distribute a single set of.class files... that will run on just about all platforms Java gives developers most of the efficiency of a compiled language... but the objects files can be run almost anywhere 8

9 A Simple Java Program Let's see what a real java program looks like Here is the Hello program from the textbook public class Hello { } public static void main(string[ ] args) { } System.out.println("Hello, world!") ; Notice that the name of the source file, Hello.java is the same as the class name, Hello, with a.java extension 9

10 A Simple Java Program To compile this program, I run $ javac Hello.java There are now two files whose name, before the extension, is Hello $ ls Hello* Hello.class Hello.java To run the file I use $ java Hello Hello World! Notice that the argument I gave to java was not the name of a file. It was the name of the class 10

11 New Material Things That Make Java Hard Java is an object oriented language This means that every Java program must do certain things... that don't seem to be directly related to solving a problem In a language like Python I could write the following program... to add the numbers from 1 to 1000 sum = 0 for i in range(1, 1000): sum += i print sum 11

12 Things That Make Java Hard In Java, a program to the same thing would look like this public class Sum_1000 { public static void main(string[ ] args) { int sum = 0; for (int i = 0; i < 1000; i++){ sum += i; } System.out.println(sum); } } I ve highlighted in red all the extra things that Java requires 12

13 Things That Make Java Hard Why does Java do this? Different computer languages are designed for different purposes A scripting language like Python was designed to get something done fast Scripting languages aren't very fussy, which is great for doing something quickly Languages like Java were designed for writing big programs. If you were writing software for a bank, you wouldn't user Python You would use Java. Because all the fussiness built into Java makes it harder to make certain kinds of errors Java is a language for big projects where many different programmers work together and they have to follow certain rules to avoid chaos 13

14 Objects & Classes in Java Java is an object oriented language An object is an entity that has state and behavior is known as an object e.g. chair, bike, car etc. It can be physical or logical such as banking system. Objects are created inside the computer's RAM A class is a group of objects that has common properties. Classes are the templates used to create objects Classes are software written in Java Objects are the contents of RAM created from a class There is only one class for each object... but a single class can create many objects 14

15 Java Classes Think of the molds that children use with clay Let's say they are molds of dinosaurs and each mold is of a different dinosaur A child can use one mold to stamp out many copies of each dinosaur A class is like the mold and the clay dinosaurs are like the objects So one mold can make many dinosaurs... and one class can make many objects The classes are contained in Java source code files and the objects are created in the computers memory using the classes 15

16 Java Classes Every Java source file contains at least one class... and the name of the source file is the class name with the.java extension A Java program is made up of one or more source files... each containing at least one Java class Most often, Java source files have a single class inside them The source file for the class must have the same name as the class... along with the extension.java You compile a Java source file using the Java compiler, javac $ javachello.java 16

17 Java Classes This will create a.class file whose filename will be the name of the class followed by the.class extension $ ls Hello.class Hello.java You distribute a Java program by providing the.class files The Java interpreter, java, can run these.class files $ java Hello Hello World! Notice that I did not use the.class extension when running the program. I just used the name of the class Each Java class usually contains one or more methods A method is a series of instructions in Java that performs a specific task 17

18 Writing a Java Class A program written in Java consists of one or more source code files Each of these files consists of one or more Java classes You cannot write a Java program that is not contained in a class This is one of those things that Java is fussy about A Java class has a particular format If you do not use this format, the code will not compile... even if you make a mistake of a single letter 18

19 Writing a Java Class Here is the format for writing a simple Java class public class CLASS_NAME { } METHOD... Everything in CAPITAL_LETTERS is a placeholder. You replace the words in capitals with something else. For example, in this simple Java program public class Hello { } public static void main(string[ ] args) { } System.out.println("Hello, world!") ; replaced replaced 19

20 Writing a Java Class When I show you an example format... anything NOT in CAPITAL_LETTERS must be typed exactly as show The... means you can have as many methods as you like They are placeholders for text you supply The first line of a class is the class header The class header contains important information about the class The name of the class It's permissions The permissions determine who can run the class All the classes for this course will be public That means anyone can use them 20

21 Java Methods The actual work in a Java program is done by methods Methods perform a specific task In other programming languages, what Java calls methods are called functions or procedures Methods are the basic unit of work in a Java program Methods are composed of individual statements A statement is a line of code that contains a complete Java command Every Java statement must have a semicolon, ;, at the end If you leave it off, you will get a compile error Every method starts with a method header The method header contains important information about the method... including the name of the method 21

22 The main Method In order to run a Java program, there must be one source code file with a method called main The main method starts the action when you run a Java program A class without a main method cannot be run by itself Sometimes people refer to the main method as the driver The main method is in overall control of what happens when you run a Java program It usually does this by calling other methods 22

23 The main Method The main method has the following format public static void main(string[] args) { } STATEMENT;... In other words, the main method can hold many statements between the curly braces, { } The method header for a main method is always public static void main(string[] args) You will learn what each of these words mean in CS/IT 115 For now, don't worry about their meaning. Just type them exactly as you see here 23

24 Using DrJava DrJava is a program which helps you write Java programs It is simple version of a type of program called an IDE IDE stands for Integrated Development Environment Other popular IDEs are Eclipse Microsoft Visual Studio NetBeans You do not need an IDE to write Java programs Any text editor will do 24

25 Using DrJava Programming editors have special features that make programming easier One such editor is sublime Text Here is what Hello.java looks like in sublime Text running on my Mac Notice that different words have different colors The colors indicate that different words are of different types This feature is called colorization 25

26 Using DrJava Here is what the same code looks like in DrJava 26

27 Using DrJava Once you have typed in the code into DrJava, you can compile the code inside DrJava If your code has no syntax errors, you will see a message telling you the compilation worked 27

28 Using DrJava If you made a mistake, DrJava will display an error message The line where the error occurs is highlighted in yellow This line leaves out the open curly brace needed to start a class definition Syntax errors like this are the leading cause of frustration for students DrJava makes it easier to spot syntax error is the failure to close curly braces 28

29 Using DrJava If you click to the right of an opening brace... DrJava will show you the code it encloses 29

30 Using DrJava Once you have corrected the errors, you can run the program inside DrJava 30

31 Creating Your First DrJava File When you open DrJava for the first time it looks like this To display line numbers, launch DrJava and choose Edit, Preferences, and Display Options. Click on Show All Line Numbers. 31

32 Creating Your First DrJava File The Java statements are typed in the large window on the right The first thing you have to type is the class header Words in blue are called keywords 32

33 Creating Your First DrJava File What follows the class header is the text of the class itself This text must be enclosed within curly braces, { } I usually put the first curly brace on the same line as the method header, then immediately add a blank line and close the curly brace DrJava highlight the area between the braces in light blue This is how DrJava shows that the curly braces are matched Adding the closing curly brace now means I won t forget to add it later which would give me a compile error 33

34 Creating Your First DrJava File What follows the class header is the text of the class itself This text must be enclosed within curly braces, { } I usually put the first curly brace on the same line as the method header, then immediately add a blank line and close the curly brace DrJava highlight the area between the braces in light blue This is how DrJava shows that the curly braces are matched Adding the closing curly brace now means I won t forget to add it later which would give me a compile error 34

35 Creating Your First DrJava File The next thing I have to do is add a main method... and the curly braces that enclose the method statements 35

36 Creating Your First DrJava File Now I write the statements for the method... each on their own line followed by a semicolon If you leave out the semicolon you will get a compile error 36

37 Creating Your First DrJava File We have to save the file before we can compile it If you click on the Save button, it will bring up a dialog box The file name in the dialog box is the same as the class name. Otherwise you will get a compiler error DrJava doesn t show you the.java extension, but it adds it anyway. Also notice the directory in which the file will be stored You have to go to that directory when you copy files to users3.cs.umb.edu You can create this directory by clicking the New Folder button 37

38 Creating Your First DrJava File The Java compiler, javac, is built into DrJava To compile the program, click on the Compile button If there are no mistakes, you will see "Compilation completed" in the box on the lower left. 38

39 Creating Your First DrJava File DrJava is written in Java. So it runs inside the Java interpreter, java This means DrJava can run your compiled Java programs for you To run the program, click on the Run button If there are no errors you should see the output of the program in the box on the lower left 39

40 Practice, Practice, Practice Programming does not comes easily to most people Programming languages are formal languages They have a rigid structure That's because your programs have to be understood by another computer program the compiler If there is any ambiguity in a line of code, the compiler cannot do its job You don't have to be a genius to program Java But you do have to have patience And most of all, you must practice The more you practice the better you will be That is why I assign the code entry exercises 40

41 Why Do I Make You Use Unix? Unix is an operating system developed in the 70's by Bell Labs In the early days it was used mostly by universities and researchers Linux is a free and open source version of Unix Unix and Linux are widely used In science and engineering In servers In these environments, linux/unix is usually run without a GUI (Graphical User Interface) Instead people use the command line To get a sense of how Java is used in the real world... you should have some exposure to the Unix command line I won't ask you any questions about Unix on an assignment, quiz or test 41

42 Using Unix In order to compile and run your Java programs on Unix... you must learn a few basic Unix commands You must learn how to Move from one directory to another List the contents of a directory Move a file from one place to another Create a new directory Compile a Java program Run a Java program That's only six commands I have created a web page with some basic Unix commands and features in 42

43 Working on the Assignments There are two types of assignments for this class Class Exercises Homework For each of these assignments you must Write a program using DrJava Compile the program in DrJava Get the program to run properly in DrJava Log into users3.cs.umb.edu Create a directory to hold the file Copy the.java file to the Unix machine Use the Java compiler to create a.class file Run the program using the Java interpreter, java It takes some getting used to but you can do it. 43

44 Copying Files to a Unix Machine After you have your Java program running in DrJava... you need to move it to users3.cs.umb.edu users3 is the hostname A hostname is the name of a computer on the network cs.umb.edu is the name of the networkusers3 is connected to Together they make something called a domain name You need to use a domain name when connecting to a computer on the Internet To copy files to a Linux/Unix machine you need a secure copying program There are many such programs for Windows... but I have a Mac so I am going to show you how to do it on a Mac 44

45 Copying Files to a Unix Machine Mac OS is really a variety of Unix... but it's hard to see that because it is buried under an nice Graphical User Interface The Mac OS Terminal application gives me a Unix command line on my Mac The first thing I have to do is go to the directory that holds the file I want to copy On my machine, my DrJava directory is located in the Documents directory... so first I have to go there $ cd Documents 45

46 Copying Files to a Unix Machine Everything before $ is not something you type Its the Unix prompt... telling you Unix is ready to listen to your next command Your prompt will look different from mine Then I need to list the contents to be sure I'm in the right place $ ls Now I need to go to my Drjava directory $ cd drjava And list contents again $ ls 46

47 Copying Files to a Unix Machine I want to copy the.java file not the.class file On my Mac I would use the scp (secure copy) command like this $ scp Hello.java jane@users3.cs.umb.edu: jane is my Unix username and users3.cs.umb.edu is the domain name You must have the : after the domain name This tells scp to copy Hello.java to your home directory You will find the instructions for transferring files from a Windows machine: And the instructions for a Mac: 47

48 The Hierarchical Filesystem Before we go any further, we needed to talk a little about the way Unix arranges files Unix uses a hierarchical filesystem Which means that all files are kept in directories (folders)... and directories live inside other directories... with one special directory at the top called root... which is written as / The hierarchical filesytem can be a little confusing If you are every confused by where you are when connected to Unix... use the cd command to go back to your home directory 48

49 How to Log On to a Unix Machine After you have moved your file to your home directory, you need to connect to users3 On Windows you will use PuTTY to log on remotely to a Unix machine: This link shows how it is done on a Mac: On my Mac, I use the ssh command ssh jane@users3.cs.umb.edu I am now in my home directory which I can see by using the pwd (print workingdirectory) command $ pwd /home/jane 49

50 Creating a Unix Directory The second homework assignment, which is due next Sunday... is be to type the Hello.java program This will have to be copied to a hw2 directory... inside a hw directory... inside your it114 directory Here's how you do it After you log in, you should be in your home directory To make sure, you can use the pwd command $ pwd home/jane 50

51 Creating a Unix Directory There should be an it114 directory in your home directory You can use ls to see if this is true $ ls it114 You need to go to this directory using cd $ cd it114 This directory should be empty $ ls $ 51

52 Creating a Unix Directory You need to create the hw directory... usingmkdir (make directory) $ mkdirhw To be sure this works, use ls $ ls hw Now you need to go to this directory $ cd hw And create a hw2 directory $ mkdirhw2 52

53 Moving a File in Unix You move files using the mv (move) command. Here is the format for the command mv FILE DIRECTORY The simplest way to move a file from one directory to another is to go to the directory that contains the file $ cd Remember, when you use cd without an argument, it takes you to your home directory Once in the home directory we can use the following command $ mv Hello.java it114/hw/hw2 it114/hw/hw2 is a path... a list of directories that goes from one directory to another 53

54 Compiling and Running a Java Program on Unix To compile and run the program first go to the directory that holds the source code $ cd it114/hw/hw2 Let's be sure the source code is really in this directory $ ls Hello.java To compile the source code we use the Java compiler javac $ javachello.java 54

55 Compiling and Running a Java Program on Unix Runningls we see the compiler has created a new file $ ls Hello.class Hello.java Hello.class is the object file that javac created from Hello.java We need the object file to run the program with the Java interpreter java $ java Hello Hello, world! Notice that the argument to java was Hello... not the name of the object file, Hello.class java takes as its argument the name of the class 55

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG 1 Notice Reading Assignment Chapter 1: Introduction to Java Programming Homework 1 It is due this coming Sunday

More information

Life Without NetBeans

Life 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 information

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java)

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java) Goals - to learn how to compile and execute a Java program - to modify a program to enhance it Overview This activity will introduce you to the Java programming language. You will type in the Java program

More information

A PROGRAM IS A SEQUENCE of instructions that a computer can execute to

A PROGRAM IS A SEQUENCE of instructions that a computer can execute to A PROGRAM IS A SEQUENCE of instructions that a computer can execute to perform some task. A simple enough idea, but for the computer to make any use of the instructions, they must be written in a form

More information

Introduction to Java. Java Programs Classes, Methods, and Statements Comments Strings Escape Sequences Identifiers Keywords

Introduction to Java. Java Programs Classes, Methods, and Statements Comments Strings Escape Sequences Identifiers Keywords Introduction to Java Java Programs Classes, Methods, and Statements Comments Strings Escape Sequences Identifiers Keywords Program Errors Syntax Runtime Logic Procedural Decomposition Methods Flow of Control

More information

Lab # 2. For today s lab:

Lab # 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 information

CSC116: Introduction to Computing - Java

CSC116: Introduction to Computing - Java CSC116: Introduction to Computing - Java Course Information Introductions Website Syllabus Schedule Computing Environment AFS (Andrew File System) Linux/Unix Commands Helpful Tricks Computers First Java

More information

CPS109 Lab 1. i. To become familiar with the Ryerson Computer Science laboratory environment.

CPS109 Lab 1. i. To become familiar with the Ryerson Computer Science laboratory environment. CPS109 Lab 1 Source: Partly from Big Java lab1, by Cay Horstmann. Objective: i. To become familiar with the Ryerson Computer Science laboratory environment. ii. To obtain your login id and to set your

More information

CompSci 125 Lecture 02

CompSci 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 information

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet. Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that

More information

3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS)

3 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 information

ENCM 339 Fall 2017: Editing and Running Programs in the Lab

ENCM 339 Fall 2017: Editing and Running Programs in the Lab page 1 of 8 ENCM 339 Fall 2017: Editing and Running Programs in the Lab Steve Norman Department of Electrical & Computer Engineering University of Calgary September 2017 Introduction This document is a

More information

Tutorial 1 CSC 201. Java Programming Concepts عؾادئماظربجمةمبادؿكدامماجلاصا

Tutorial 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 information

CS 177 Recitation. Week 1 Intro to Java

CS 177 Recitation. Week 1 Intro to Java CS 177 Recitation Week 1 Intro to Java Questions? Computers Computers can do really complex stuff. How? By manipulating data according to lists of instructions. Fundamentally, this is all that a computer

More information

CS 231 Data Structures and Algorithms, Fall 2016

CS 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 information

12/22/11. Java How to Program, 9/e. Help you get started with Eclipse and NetBeans integrated development environments.

12/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 information

Slide 1 Java Programming 1 Lecture 2D Java Mechanics Duration: 00:01:06 Advance mode: Auto

Slide 1 Java Programming 1 Lecture 2D Java Mechanics Duration: 00:01:06 Advance mode: Auto Java Programming 1 Lecture 2D Java Mechanics Slide 1 Java Programming 1 Lecture 2D Java Mechanics Duration: 00:01:06 To create your own Java programs, you follow a mechanical process, a well-defined set

More information

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

2 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 information

Getting Started (1.8.7) 9/2/2009

Getting 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 information

COMP-202: Foundations of Programming. Lecture 2: Java basics and our first Java program! Jackie Cheung, Winter 2016

COMP-202: Foundations of Programming. Lecture 2: Java basics and our first Java program! Jackie Cheung, Winter 2016 COMP-202: Foundations of Programming Lecture 2: Java basics and our first Java program! Jackie Cheung, Winter 2016 Learn about cutting-edge research over lunch with cool profs January 18-22, 2015 11:30

More information

Programming Principles 1 (CSC131) & 2 (CSC132) Software usage guide

Programming Principles 1 (CSC131) & 2 (CSC132) Software usage guide School of Sciences Department of Computer Science and Engineering Programming Principles 1 (CSC131) & 2 (CSC132) Software usage guide WHAT SOFTWARE AM I GOING TO NEED/USE?... 3 WHERE DO I FIND THE SOFTWARE?...

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 10: OCT. 6TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 10: OCT. 6TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 10: OCT. 6TH INSTRUCTOR: JIAYIN WANG 1 Notice Assignments Reading Assignment: Chapter 3: Introduction to Parameters and Objects The Class 10 Exercise

More information

Getting Started with Java. Atul Prakash

Getting Started with Java. Atul Prakash Getting Started with Java Atul Prakash Running Programs C++, Fortran, Pascal Python, PHP, Ruby, Perl Java is compiled into device-independent code and then interpreted Source code (.java) is compiled into

More information

Unit 13. Linux Operating System Debugging Programs

Unit 13. Linux Operating System Debugging Programs 1 Unit 13 Linux Operating System Debugging Programs COMPILATION 2 3 Editors "Real" developers use editors designed for writing code No word processors!! You need a text editor to write your code Eclipse,

More information

MEAP Edition Manning Early Access Program Get Programming with Java Version 1

MEAP Edition Manning Early Access Program Get Programming with Java Version 1 MEAP Edition Manning Early Access Program Get Programming with Java Version 1 Copyright 2018 Manning Publications For more information on this and other Manning titles go to www.manning.com welcome First,

More information

Certified Core Java Developer VS-1036

Certified 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 information

last time in cs recitations. computer commands. today s topics.

last time in cs recitations. computer commands. today s topics. last time in cs1007... recitations. course objectives policies academic integrity resources WEB PAGE: http://www.columbia.edu/ cs1007 NOTE CHANGES IN ASSESSMENT 5 EXTRA CREDIT POINTS ADDED sign up for

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 8: SEP. 29TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 8: SEP. 29TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 8: SEP. 29TH INSTRUCTOR: JIAYIN WANG 1 Notice Prepare the Weekly Quiz The weekly quiz is for the knowledge we learned in the previous week (both the

More information

Java Bytecode (binary file)

Java Bytecode (binary file) Java is Compiled Unlike Python, which is an interpreted langauge, Java code is compiled. In Java, a compiler reads in a Java source file (the code that we write), and it translates that code into bytecode.

More information

The Command Shell. Fundamentals of Computer Science

The Command Shell. Fundamentals of Computer Science The Command Shell Fundamentals of Computer Science Outline Starting the Command Shell Locally Remote Host Directory Structure Moving around the directories Displaying File Contents Compiling and Running

More information

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications Hello World! Computer Programming for Kids and Other Beginners by Warren Sande and Carter Sande Chapter 1 Copyright 2009 Manning Publications brief contents Preface xiii Acknowledgments xix About this

More information

COMP-202: Foundations of Programming. Lecture 2: Java basics and our first Java program! Jackie Cheung, Winter 2015

COMP-202: Foundations of Programming. Lecture 2: Java basics and our first Java program! Jackie Cheung, Winter 2015 COMP-202: Foundations of Programming Lecture 2: Java basics and our first Java program! Jackie Cheung, Winter 2015 Assignment Due Date Assignment 1 is now due on Tuesday, Jan 20 th, 11:59pm. Quiz 1 is

More information

Initial Coding Guidelines

Initial Coding Guidelines Initial Coding Guidelines ITK 168 (Lim) This handout specifies coding guidelines for programs in ITK 168. You are expected to follow these guidelines precisely for all lecture programs, and for lab programs.

More information

IT151: Introduction to Programming (java)

IT151: Introduction to Programming (java) IT151: Introduction to Programming (java) Programming Basics Program A set of instructions that a computer uses to do something. Programming / Develop The act of creating or changing a program Programmer

More information

CSC116: Introduction to Computing - Java

CSC116: 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 information

St. Edmund Preparatory High School Brooklyn, NY

St. Edmund Preparatory High School Brooklyn, NY AP Computer Science Mr. A. Pinnavaia Summer Assignment St. Edmund Preparatory High School Name: I know it has been about 7 months since you last thought about programming. It s ok. I wouldn t want to think

More information

CS125 : Introduction to Computer Science. Lecture Notes #4 Type Checking, Input/Output, and Programming Style

CS125 : Introduction to Computer Science. Lecture Notes #4 Type Checking, Input/Output, and Programming Style CS125 : Introduction to Computer Science Lecture Notes #4 Type Checking, Input/Output, and Programming Style c 2005, 2004, 2002, 2001, 2000 Jason Zych 1 Lecture 4 : Type Checking, Input/Output, and Programming

More information

You should see something like this, called the prompt :

You should see something like this, called the prompt : CSE 1030 Lab 1 Basic Use of the Command Line PLEASE NOTE this lab will not be graded and does not count towards your final grade. However, all of these techniques are considered testable in a labtest.

More information

Intro to Linux. this will open up a new terminal window for you is super convenient on the computers in the lab

Intro to Linux. this will open up a new terminal window for you is super convenient on the computers in the lab Basic Terminal Intro to Linux ssh short for s ecure sh ell usage: ssh [host]@[computer].[otheripstuff] for lab computers: ssh [CSID]@[comp].cs.utexas.edu can get a list of active computers from the UTCS

More information

Getting Started. Excerpted from Hello World! Computer Programming for Kids and Other Beginners

Getting Started. Excerpted from Hello World! Computer Programming for Kids and Other Beginners Getting Started Excerpted from Hello World! Computer Programming for Kids and Other Beginners EARLY ACCESS EDITION Warren D. Sande and Carter Sande MEAP Release: May 2008 Softbound print: November 2008

More information

Lec 3. Compilers, Debugging, Hello World, and Variables

Lec 3. Compilers, Debugging, Hello World, and Variables Lec 3 Compilers, Debugging, Hello World, and Variables Announcements First book reading due tonight at midnight Complete 80% of all activities to get 100% HW1 due Saturday at midnight Lab hours posted

More information

COMP 110 Project 1 Programming Project Warm-Up Exercise

COMP 110 Project 1 Programming Project Warm-Up Exercise COMP 110 Project 1 Programming Project Warm-Up Exercise Creating Java Source Files Over the semester, several text editors will be suggested for students to try out. Initially, I suggest you use JGrasp,

More information

Oregon State University School of Electrical Engineering and Computer Science. CS 261 Recitation 1. Spring 2011

Oregon State University School of Electrical Engineering and Computer Science. CS 261 Recitation 1. Spring 2011 Oregon State University School of Electrical Engineering and Computer Science CS 261 Recitation 1 Spring 2011 Outline Using Secure Shell Clients GCC Some Examples Intro to C * * Windows File transfer client:

More information

Computers and Computation. The Modern Computer. The Operating System. The Operating System

Computers and Computation. The Modern Computer. The Operating System. The Operating System The Modern Computer Computers and Computation What is a computer? A machine that manipulates data according to instructions. Despite their apparent complexity, at the lowest level computers perform simple

More information

CSC116: Introduction to Computing - Java

CSC116: 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 information

Session 1: Accessing MUGrid and Command Line Basics

Session 1: Accessing MUGrid and Command Line Basics Session 1: Accessing MUGrid and Command Line Basics Craig A. Struble, Ph.D. July 14, 2010 1 Introduction The Marquette University Grid (MUGrid) is a collection of dedicated and opportunistic resources

More information

Assoc. 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. 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

Lecture (01) Getting started. Dr. Ahmed ElShafee

Lecture (01) Getting started. Dr. Ahmed ElShafee Lecture (01) Getting started Dr. Ahmed ElShafee 1 Dr. Ahmed ElShafee, fundamentals of Programming I, Agenda Download and Installation Java How things work NetBeans Comments Structure of the program Writing

More information

Linux File System and Basic Commands

Linux File System and Basic Commands Linux File System and Basic Commands 0.1 Files, directories, and pwd The GNU/Linux operating system is much different from your typical Microsoft Windows PC, and probably looks different from Apple OS

More information

Object-Oriented Programming in Java

Object-Oriented Programming in Java CSCI/CMPE 3326 Object-Oriented Programming in Java Course Information, JVM, Compile and Run, IDE, Android Studio Dr. Dongchul Kim Department of Computer Science University of Texas Rio Grande Valley Course

More information

Chapter 2. Editing And Compiling

Chapter 2. Editing And Compiling Chapter 2. Editing And Compiling Now that the main concepts of programming have been explained, it's time to actually do some programming. In order for you to "edit" and "compile" a program, you'll need

More information

Introduction. Introduction to OOP with Java. Lecture 01: Introduction to OOP with Java - AKF Sep AbuKhleiF -

Introduction. Introduction to OOP with Java. Lecture 01: Introduction to OOP with Java - AKF Sep AbuKhleiF - Introduction to OOP with Java Instructor: AbuKhleif, Mohammad Noor Sep 2017 www.abukhleif.com Lecture 01: Introduction Instructor: AbuKhleif, Mohammad Noor Sep 2017 www.abukhleif.com AbuKhleiF - www.abukhleif.com

More information

Lesson 04: Our First Java Program (W01D4

Lesson 04: Our First Java Program (W01D4 Lesson 04: Our First Java Program (W01D4) Balboa High School Michael Ferraro Lesson 04: Our First Java Program (W01D4 Do Now Start a terminal shell. From there, issue these commands

More information

Computer Programming-1 CSC 111. Chapter 1 : Introduction

Computer Programming-1 CSC 111. Chapter 1 : Introduction Computer Programming-1 CSC 111 Chapter 1 : Introduction Chapter Outline What a computer is What a computer program is The Programmer s Algorithm How a program that you write in Java is changed into a form

More information

CMSC 201 Spring 2017 Lab 01 Hello World

CMSC 201 Spring 2017 Lab 01 Hello World CMSC 201 Spring 2017 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 5th by 8:59:59 PM Value: 10 points At UMBC, our General Lab (GL) system is designed to grant students the

More information

Introduction to OOP with Java. Instructor: AbuKhleif, Mohammad Noor Sep 2017

Introduction to OOP with Java. Instructor: AbuKhleif, Mohammad Noor Sep 2017 Introduction to OOP with Java Instructor: AbuKhleif, Mohammad Noor Sep 2017 Lecture 01: Introduction Instructor: AbuKhleif, Mohammad Noor Sep 2017 Instructor AbuKhleif, Mohammad Noor Studied Computer Engineer

More information

sftp - secure file transfer program - how to transfer files to and from nrs-labs

sftp - secure file transfer program - how to transfer files to and from nrs-labs last modified: 2017-01-20 p. 1 CS 111 - useful details: ssh, sftp, and ~st10/111submit You write Racket BSL code in the Definitions window in DrRacket, and save that Definitions window's contents to a

More information

CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics. COMP-202 Unit 1: Introduction

CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics. COMP-202 Unit 1: Introduction CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics COMP-202 Unit 1: Introduction Announcements Did you miss the first lecture? Come talk to me after class. If you want

More information

CS 152: Data Structures with Java Hello World with the IntelliJ IDE

CS 152: Data Structures with Java Hello World with the IntelliJ IDE CS 152: Data Structures with Java Hello World with the IntelliJ IDE Instructor: Joel Castellanos e-mail: joel.unm.edu Web: http://cs.unm.edu/~joel/ Office: Electrical and Computer Engineering building

More information

Class 1: Homework. Intro to Computer Science CSCI-UA.0101 New York University Courant Institute of Mathematical Sciences Fall 2017

Class 1: Homework. Intro to Computer Science CSCI-UA.0101 New York University Courant Institute of Mathematical Sciences Fall 2017 Intro to Computer Science CSCI-UA.0101 New York University Courant Institute of Mathematical Sciences Fall 2017 1 1. Please obtain a copy of Introduction to Java Programming, 11th (or 10th) Edition, Brief

More information

Week 2: Data and Output

Week 2: Data and Output CS 170 Java Programming 1 Week 2: Data and Output Learning to speak Java Types, Values and Variables Output Objects and Methods What s the Plan? Topic I: A little review IPO, hardware, software and Java

More information

CMSC 201 Spring 2018 Lab 01 Hello World

CMSC 201 Spring 2018 Lab 01 Hello World CMSC 201 Spring 2018 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 4th by 8:59:59 PM Value: 10 points At UMBC, the GL system is designed to grant students the privileges

More information

assembler Machine Code Object Files linker Executable File

assembler Machine Code Object Files linker Executable File CSCE A211 Programming Intro What is a Programming Language Assemblers, Compilers, Interpreters A compiler translates programs in high level languages into machine language that can be executed by the computer.

More information

Unit 10. Linux Operating System

Unit 10. Linux Operating System 1 Unit 10 Linux Operating System 2 Linux Based on the Unix operating system Developed as an open-source ("free") alternative by Linux Torvalds and several others starting in 1991 Originally only for Intel

More information

Summer Assignment for AP Computer Science. Room 302

Summer Assignment for AP Computer Science. Room 302 Fall 2016 Summer Assignment for AP Computer Science email: hughes.daniel@north-haven.k12.ct.us website: nhhscomputerscience.com APCS is your subsite Mr. Hughes Room 302 Prerequisites: You should have successfully

More information

Introduction: What is Unix?

Introduction: What is Unix? Introduction Introduction: What is Unix? An operating system Developed at AT&T Bell Labs in the 1960 s Command Line Interpreter GUIs (Window systems) are now available Introduction: Unix vs. Linux Unix

More information

Computer Science 62 Lab 8

Computer Science 62 Lab 8 Computer Science 62 Lab 8 Wednesday, March 26, 2014 Today s lab has two purposes: it is a continuation of the binary tree experiments from last lab and an introduction to some command-line tools. The Java

More information

Computer Hardware. Java Software Solutions Lewis & Loftus. Key Hardware Components 12/17/2013

Computer Hardware. Java Software Solutions Lewis & Loftus. Key Hardware Components 12/17/2013 Java Software Solutions Lewis & Loftus Chapter 1 Notes Computer Hardware Key Hardware Components CPU central processing unit Input / Output devices Main memory (RAM) Secondary storage devices: Hard drive

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 9: OCT. 4TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 9: OCT. 4TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 9: OCT. 4TH INSTRUCTOR: JIAYIN WANG 1 Notice Assignments Reading Assignment: Chapter 3: Introduction to Parameters and Objects The Class 9 Exercise

More information

Assignment Submission HOWTO

Assignment Submission HOWTO Assignment Submission HOWTO This document provides detailed instructions on: 1. How to submit an assignment via Blackboard 2. How to create a zip file and check its contents 3. How to make file extensions

More information

Welcome to CSSE 220. We are excited that you are here:

Welcome to CSSE 220. We are excited that you are here: Welcome to CSSE 220 We are excited that you are here: Start your computer Do NOT start Eclipse Follow the instructions in the email, if you haven t already Pick up a quiz from the back table Answer the

More information

Outline. Overview. Control statements. Classes and methods. history and advantage how to: program, compile and execute 8 data types 3 types of errors

Outline. Overview. Control statements. Classes and methods. history and advantage how to: program, compile and execute 8 data types 3 types of errors Outline Overview history and advantage how to: program, compile and execute 8 data types 3 types of errors Control statements Selection and repetition statements Classes and methods methods... 2 Oak A

More information

Lesson 3 Transcript: Part 1 of 2 - Tools & Scripting

Lesson 3 Transcript: Part 1 of 2 - Tools & Scripting Lesson 3 Transcript: Part 1 of 2 - Tools & Scripting Slide 1: Cover Welcome to lesson 3 of the db2 on Campus lecture series. Today we're going to talk about tools and scripting, and this is part 1 of 2

More information

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup Purpose: The purpose of this lab is to setup software that you will be using throughout the term for learning about Python

More information

CMSC 150 LECTURE 1 INTRODUCTION TO COURSE COMPUTER SCIENCE HELLO WORLD

CMSC 150 LECTURE 1 INTRODUCTION TO COURSE COMPUTER SCIENCE HELLO WORLD CMSC 150 INTRODUCTION TO COMPUTING ACKNOWLEDGEMENT: THESE SLIDES ARE ADAPTED FROM SLIDES PROVIDED WITH INTRODUCTION TO JAVA PROGRAMMING, LIANG (PEARSON 2014) LECTURE 1 INTRODUCTION TO COURSE COMPUTER SCIENCE

More information

Department of Computer Science. Software Usage Guide. CSC132 Programming Principles 2. By Andreas Grondoudis

Department of Computer Science. Software Usage Guide. CSC132 Programming Principles 2. By Andreas Grondoudis Department of Computer Science Software Usage Guide To provide a basic know-how regarding the software to be used for CSC132 Programming Principles 2 By Andreas Grondoudis WHAT SOFTWARE AM I GOING TO NEED/USE?...2

More information

Get JAVA. I will just tell you what I did (on January 10, 2017). I went to:

Get JAVA. I will just tell you what I did (on January 10, 2017). I went to: Get JAVA To compile programs you need the JDK (Java Development Kit). To RUN programs you need the JRE (Java Runtime Environment). This download will get BOTH of them, so that you will be able to both

More information

Introduction to Python. Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas

Introduction to Python. Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas Introduction to Python Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas If you have your own PC, download and install a syntax-highlighting text editor and Python

More information

Introduction to Java. Lecture 1 COP 3252 Summer May 16, 2017

Introduction 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 information

Computational Applications in Nuclear Astrophysics using Java Java course Lecture 1

Computational Applications in Nuclear Astrophysics using Java Java course Lecture 1 Computational Applications in Nuclear Astrophysics using Java Java course Lecture 1 Prepared for course 160410/411 Michael C. Kunkel m.kunkel@fz-juelich.de Materials taken from; docs.oracle.com Teach Yourself

More information

These two items are all you'll need to write your first application reading instructions in English.

These two items are all you'll need to write your first application reading instructions in English. IFRN Instituto Federal de Educação, Ciência e Tecnologia do RN Curso de Tecnologia em Análise e Desenvolvimento de Sistemas Disciplina: Inglês Técnico Professor: Sandro Luis de Sousa Aluno(a) Turma: Data:

More information

Java Programming Fundamentals - Day Instructor: Jason Yoon Website:

Java Programming Fundamentals - Day Instructor: Jason Yoon Website: Java Programming Fundamentals - Day 1 07.09.2016 Instructor: Jason Yoon Website: http://mryoon.weebly.com Quick Advice Before We Get Started Java is not the same as javascript! Don t get them confused

More information

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version... Contents Note: pay attention to where you are........................................... 1 Note: Plaintext version................................................... 1 Hello World of the Bash shell 2 Accessing

More information

Building Java Programs. Introduction to Programming and Simple Java Programs

Building 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 information

Week - 01 Lecture - 04 Downloading and installing Python

Week - 01 Lecture - 04 Downloading and installing Python Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 01 Lecture - 04 Downloading and

More information

Lab 1 Introduction to UNIX and C

Lab 1 Introduction to UNIX and C Name: Lab 1 Introduction to UNIX and C This first lab is meant to be an introduction to computer environments we will be using this term. You must have a Pitt username to complete this lab. The doc is

More information

CS 11 java track: lecture 1

CS 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 information

Lecture 02, Fall 2018 Friday September 7

Lecture 02, Fall 2018 Friday September 7 Anatomy of a class Oliver W. Layton CS231: Data Structures and Algorithms Lecture 02, Fall 2018 Friday September 7 Follow-up Python is also cross-platform. What s the advantage of Java? It s true: Python

More information

Principles of Bioinformatics. BIO540/STA569/CSI660 Fall 2010

Principles of Bioinformatics. BIO540/STA569/CSI660 Fall 2010 Principles of Bioinformatics BIO540/STA569/CSI660 Fall 2010 Lecture Five Practical Computing Skills Emphasis This time it s concrete, not abstract. Fall 2010 BIO540/STA569/CSI660 3 Administrivia Monday

More information

How to make a "hello world" program in Java with Eclipse *

How to make a hello world program in Java with Eclipse * OpenStax-CNX module: m43473 1 How to make a "hello world" program in Java with Eclipse * Hannes Hirzel Based on How to make a "hello world" program in Java. by Rodrigo Rodriguez This work is produced by

More information

Software and Programming 1

Software 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 information

Working with the Command Line

Working with the Command Line Working with the Command Line Useful Commands cd ls cp mv Running a Java Program Writing Your Code Compiling Your Program Running Your Program Running a Scala Program Useful Commands At its heart, the

More information

Computer Principles and Components 1

Computer Principles and Components 1 Computer Principles and Components 1 Course Map This module provides an overview of the hardware and software environment being used throughout the course. Introduction Computer Principles and Components

More information

CSCI 1103: Introduction

CSCI 1103: Introduction CSCI 1103: Introduction Chris Kauffman Last Updated: Wed Sep 13 10:43:47 CDT 2017 1 Logistics Reading Eck Ch 1 Available online: http://math.hws.edu/javanotes/ Reading ahead is encouraged Goals Basic Model

More information

EECS 211 Lab 2. Getting Started. Getting the code. Windows. Mac/Linux

EECS 211 Lab 2. Getting Started. Getting the code. Windows. Mac/Linux EECS 211 Lab 2 Control Statements, Functions and Structures Winter 2017 Today we are going to practice navigating in the shell and writing basic C++ code. Getting Started Let s get started by logging into

More information

CHAPTER 1 Introduction to Computers and Java

CHAPTER 1 Introduction to Computers and Java CHAPTER 1 Introduction to Computers and Java Copyright 2016 Pearson Education, Inc., Hoboken NJ Chapter Topics Chapter 1 discusses the following main topics: Why Program? Computer Systems: Hardware and

More information

Setting up your Computer

Setting up your Computer Setting up your Computer 1 Introduction On this lab, you will be getting your computer ready to develop and run Java programs. This lab will be covering the following topics: Installing Java JDK 1.8 or

More information

Project 1. Java Control Structures 1/17/2014. Project 1 and Java Intro. Project 1 (2) To familiarize with

Project 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 information

Chapter 1 Introduction to Computers, Programs, and Java

Chapter 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 information

Javac and Eclipse tutorial

Javac 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 information