90 likes | 250 Views
Intro to Object Oriented Programming with Java (MSIS 2203). Instructor: Dr. Jason Nichols Jason.Nichols@okstate.edu 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.). One View of the MSIS World.
E N D
Intro to Object Oriented Programming with Java (MSIS 2203) • Instructor: Dr. Jason Nichols • Jason.Nichols@okstate.edu • 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.)
One View of the MSIS World Core Skills -------------------------------------------------------------------------------Applied Knowledge Toolset Integration And Technical Communication General Concepts Specific Tools Applying Tools and Communication Skills For Firm Value Programming Concepts (You are here) Organizational Applications (e.g. enterprise systems, ecommerce, decision support, operations management, etc.) Project Mgmt. and Communication (e.g. MSIS 3033) Overview and General Business Tools (e.g. MSIS 2103) Database Concepts (e.g. MSIS 3103) System Design (e.g. MSIS 3303) Internet Technologies (e.g. MSIS 4133)
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 JDK 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)