53513199-43779287-Java (1) - Tutorial Java Programming with...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Tutorial: Java Programming with JDK Jinhwa Kim School of Business Oklahoma State University
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Table of Contents (1) Part I: How to Start Sample Java programs(applications vs. Applets) How to install Java2(SDK) How to write, compile, and run Java programs Part II: Languages in Java Program structure in Java Data Types Expressions and Operators Methods Arrays
Background image of page 2
Table of Contents (2) III. Object-oriented programming Classes and object Inheritance IV. Java Graphics MS J++ Java Forte IBM Visual Age V. More Helps Books Internet sites
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Part I: How to Start Sample Java Programs Applications vs. Applets How to Install Java2 go to http://java.sun.com download j2sdk-1_3_0_02-win.exe install above into your computer change path = c:\jdk1.3.0_02\bin
Background image of page 4
How to write, compile, and run Java programs Write programs using dos editor or note pad ex) c:\edit Welcome. java Compile the programs ex) c:\ javac Welcome.java Compile produces Welcome. class Run the programs ex) c:\ java Welcome c:\ appletviewer Welcome. html
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Part II: Languages in Java Program Structure in Java Declaring variables/ initializations Processing - reading inputs - process inputs - show output Exit the program
Background image of page 6
Data Types String for strings of letters ex) String LastName = “Kim”; char for characters ex) char alphabet = ‘A’; byte , short , int , and long for integer numbers ex) int number = 3; float & double for real numbers ex) double pi = 3.14159 boolean for logical ex) boolean check = true;
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 35

53513199-43779287-Java (1) - Tutorial Java Programming with...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online