{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Chapter2_1-ProgramStructure

Chapter2_1-ProgramStructure - Chapter 2 Java Fundamentals...

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

View Full Document Right Arrow Icon
Chapter 2: Java Fundamentals Java Program Structure
Background image of page 1

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

View Full Document Right Arrow Icon
Introduction to OOP Dr. S. GANNOUNI & Dr. A. TOUIR Page 2 Content Java Program Structure Salam Program Saving, Compiling and Running Java Programs Comments
Background image of page 2
Introduction to OOP Dr. S. GANNOUNI & Dr. A. TOUIR Page 3 // import Section – import used java libraries public class MyProgramName { // main method public static void main( String args [] ){ // Declaration section – Declare needed variables // Input section – Enter required data // Processing section – Processing Statements // Output section – Display expected results } // end main } // end class Java Program Structure
Background image of page 3

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

View Full Document Right Arrow Icon
Introduction to OOP Dr. S. GANNOUNI & Dr. A. TOUIR Page 4 // import section: Empty public class MySalamProgram { // main method public static void main( String args [] ){ // Declaration section: Empty // Input section: Empty // Processing section: Empty // Output section System.out.println(“… Assalamo Alaikom … ”); } // end main } // end class Salam Program
Background image of page 4
Introduction to OOP Dr. S. GANNOUNI & Dr. A. TOUIR Page 5
Background image of page 5

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

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}