instructor: dr. jason nichols – [email protected] [email protected] office hours:...

9
Instructor: Dr. Jason Nichols [email protected] Office Hours: 9:30-10:30 M/W/F or by appointment Business Building #210 Textbook: Java: An Intro to Problem Solving and Programming (5 th ed.)

Upload: russell-pearson

Post on 13-Dec-2015

215 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Instructor: Dr. Jason Nichols – Jason.Nichols@okstate.edu Jason.Nichols@okstate.edu  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building

Instructor: Dr. Jason Nichols– [email protected]

Office Hours:– 9:30-10:30 M/W/F or by appointment– Business Building #210

Textbook:– Java: An Intro to Problem Solving and Programming (5th

ed.)

Page 2: Instructor: Dr. Jason Nichols – Jason.Nichols@okstate.edu Jason.Nichols@okstate.edu  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building

Overview and General Business

Tools(e.g. MSIS 2103)

Database Concepts

(e.g. MSIS 3103)

Internet Technologies

(e.g. MSIS 4133)

System Design(e.g. MSIS 3303)

Organizational Applications

(e.g. enterprise systems,

ecommerce, decision support,

operations management,

etc.)

General Concepts Specific Tools Toolset IntegrationAnd Technical

Communication

Applying Tools and Communication Skills

For Firm Value

Project Mgmt. and

Communication(e.g. MSIS 3033)

Page 3: Instructor: Dr. Jason Nichols – Jason.Nichols@okstate.edu Jason.Nichols@okstate.edu  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building

SETTING UP YOUR ENVIRONMENTProgramming: Step 1

Page 4: Instructor: Dr. Jason Nichols – Jason.Nichols@okstate.edu Jason.Nichols@okstate.edu  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building

(Very) Brief Java Overview

You

Your Computer

English Language

11011000011010111000111000110101

How do we communicateto the computer?

Page 5: Instructor: Dr. Jason Nichols – Jason.Nichols@okstate.edu Jason.Nichols@okstate.edu  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building

(Very) Brief Java Overview

Creating a program

Running a program

English Language used to write Java

11011000011010111000111000110101

Compile to “Byte Code”

Translate for Computer

Page 6: Instructor: Dr. Jason Nichols – Jason.Nichols@okstate.edu Jason.Nichols@okstate.edu  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building

How To Get the JDK

• http://java.sun.com/javase/downloads/– See instruction document on course website

Page 7: Instructor: Dr. Jason Nichols – Jason.Nichols@okstate.edu Jason.Nichols@okstate.edu  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building

Where Do We Write Our Java?

• We will be using TextPad– www.textpad.com– Follow instruction document on course website

• There are a number of other options– even just notepad

• But then we have to access the JDK commands directly– open a command line window (start -> run, then type “cmd”)– Navigate to our saved java file– To compile: “javac <insert filename>.java– To run compiled program: “java <insert filename>

Page 8: Instructor: Dr. Jason Nichols – Jason.Nichols@okstate.edu Jason.Nichols@okstate.edu  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building

First Program (Don’t Sweat the Details)

class HelloWorld{

public static void main(String[] args){System.out.println("Hello all");

}}

Page 9: Instructor: Dr. Jason Nichols – Jason.Nichols@okstate.edu Jason.Nichols@okstate.edu  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building

To-Do for This Week:• Look through chapter 1

• Download and install the JDK

• Download and install TextPad

• First Application– Enter the “hello world” text into a textpad window– Click “save as”– Change the filetype to “any”– Save as HelloWorld.java– Compile your java file (tools -> external tools -> compile java

application)– Run your application (tools -> external tools -> run java application)