MSIS 2203_Intro_fall 2009

Download Report

Transcript MSIS 2203_Intro_fall 2009

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.)
General Concepts
Specific Tools
Toolset Integration
And Technical
Communication
Programming
Concepts
(
)
Overview and
General Business
Tools
(e.g. MSIS 2103)
Database
Concepts
(e.g. MSIS 3103)
Project Mgmt.
and
Communication
(e.g. MSIS 3033)
System Design
(e.g. MSIS 3303)
Internet
Technologies
(e.g. MSIS 4133)
Applying Tools and
Communication Skills
For Firm Value
Organizational
Applications
(e.g. enterprise
systems,
ecommerce,
decision support,
operations
management,
etc.)
Programming: Step 1
SETTING UP YOUR ENVIRONMENT
(Very) Brief Java Overview
You
English Language
How do we communicate
to the computer?
11011000011010111000111000110101
Your Computer
(Very) Brief Java Overview
English Language used to write Java
Compile to “Byte Code”
Creating a program
Running a program
Translate for Computer
11011000011010111000111000110101
How To Get the JDK
• http://java.sun.com/javase/downloads/
– See instruction document on course website
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>
First Program (Don’t Sweat the Details)
class HelloWorld{
public static void main(String[] args){
System.out.println("Hello all");
}
}
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)