01_Introduction_2_per_Page

And symbols that we can use to write a program

This preview shows page 5 - 10 out of 18 pages.

and symbols that we can use to write a program employs a set of rules (syntax) that dictate how the words and symbols can be put together to form valid program statements Defines the meaning (semantics) of program statements Java was created by Sun Microsystems and introduced in 1995 (acquired by Oracle, 2010) Java continues to evolve and grow in importance to the software industry COMP 1210 – Fundamentals of Computing I Slide 1 - 10 Java Program Structure In the Java programming language: A program is made up of one or more classes A class contains data and/or methods A method contains local data and program statements that form an algorithm These terms will be explored in detail throughout the course A Java application has a class containing a method called main
Image of page 5

Subscribe to view the full document.

6 COMP 1210 – Fundamentals of Computing I Slide 1 - 11 First Program with jGRASP 1. Start up jGRASP 2. Open a new file 3. Enter the program (incrementally) - The program should print “War Eagle” 4. Save program 5. Compile program 6. Run program (check for correct output) 7. Set a breakpoint and Debug (step through each statement 8. Generate CSD, Line No., and Documentation COMP 1210 – Fundamentals of Computing I Slide 1 - 12 jGRASP FirstProgram.java
Image of page 6
7 COMP 1210 – Fundamentals of Computing I Slide 1 - 13 jGRASP FirstProgramWithComments.java COMP 1210 – Fundamentals of Computing I Slide 1 - 14 Software Concepts Algorithms and Data Dissecting a Java Program Program Development, Translation, and Execution Syntax, Semantics, and Errors Overview of Programming Languages Object-Oriented Programming Applets vs. Applications
Image of page 7

Subscribe to view the full document.