A ThreeTier System Architecture Design and Development for Hurricane Occurrence Simulation - PowerPoint PPT Presentation

About This Presentation
Title:

A ThreeTier System Architecture Design and Development for Hurricane Occurrence Simulation

Description:

To become familiar with your computing environment and your compiler ... Download & Install Java JDK and NetBeans. http://java.sun.com/j2se/1.5.0/download.jsp ... – PowerPoint PPT presentation

Number of Views:68
Avg rating:3.0/5.0
Slides: 22
Provided by: MCh54
Learn more at: http://users.cs.fiu.edu
Category:

less

Transcript and Presenter's Notes

Title: A ThreeTier System Architecture Design and Development for Hurricane Occurrence Simulation


1
CHAPTER 1
  • INTRODUCTION

2
CHAPTER GOALS
  • To learn about machine, assembly and high level
    programming languages
  • To become familiar with your computing
    environment and your compiler
  • To compile and run your first Java program
  • To recognize compiler, run-time and logic errors

3
Programming Languages
  • Machine Language10101 101000 10000 1100100
    10100011 11110000
  • Assembly Language
  • iload intRatebipush 100if_icmpgt intError
  • High-level languageif (intRate gt 100) . . .

4
The Java Programming Language
  • Simple
  • Safe
  • Object orientation
  • Platform-independent ("write once, run anywhere")
  • Rich library
  • Designed for the internet

5
Java Programs
  • Applets
  • Small programs designed to add interactivity to
    Web sites
  • Downloaded with the Web page and launched by the
    Internet browser
  • Servlets
  • Run by Web server on the server
  • Typically generate Web content
  • Applications
  • Programs that run standalone on a client

6
Becoming Familiar with your Computer
  • Login
  • Locate the Java compiler (Later)
  • Understand files and folders
  • Write a simple program
  • Save your work

7
What youll do in Java
8
Bytecode
9
Integrated Development Environment
  • Download Install Java JDK and NetBeans
  • http//java.sun.com/j2se/1.5.0/download.jsp

click
10
click
11
select
then click
get jdk-1_5_0_07-nb-5_0-win-ml.exe
12
doubleclick jdk-1_5_0_07-nb-5_0-win-ml.exe
follow the instruction of the wizard
13
NetBean
14
  • File-gtNew Project

select
15
Set the location
Set the file name
16
Hello.java
// case sensitive in Java
  • 1 public class Hello
  • 2
  • 3 public static void main(String args)
  • 4
  • 5 // display a greeting and exit
  • 6 System.out.println("Hello, World!")
  • System.exit(0)
  • 7
  • 8

// public class ClassName (same as filename)
// begin of the class
// main method
// begin of main method
// comments
// method call
// another method call, // every statement must
end with a semicolon
// end of main method
// end of the class
17
Flow of Control
  • Sequential processing
  • System.out.println("Hello, World!")
  • System.exit(0)
  • Method call
  • Selection (conditional branching)
  • Looping

18
Syntax 1.1 Method Call
  • object.methodName(parameters)
  • Example
  • System.out.println("Hello,World!")
  • Purpose
  • To invoke a method of an object and supply any
    additional parameters

19
Compiling and Running
  • Type program into text editor
  • Save
  • Compile into byte codes
  • Build-gtCompile Hello.java (F9)
  • Execute byte codes Run-gtRun Main Project (F6)

20
Errors
  • Syntax errorSystem.ouch.print("...")System.out.
    print("Hello)
  • Detected by the compiler
  • Run-time error
  • Detected by JVM
  • Logic errorsSystem.out.print("Hell")
  • Detected (hopefully) through testing

21
The Edit-Compile-Test Loop
Write a Comment
User Comments (0)
About PowerShow.com