1 / 9

Introductory Java Programming

Introductory Java Programming. An Introduction to the Java Language App Design Flat Rock Community Schools. Comments. Two ways to create a comment //This is a comment /* * This * way * too */. Class Files. The actual file that you use to code the Java Language

sidone
Download Presentation

Introductory Java Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introductory Java Programming An Introduction to the Java Language App Design Flat Rock Community Schools

  2. Comments • Two ways to create a comment //This is a comment /* * This * way * too */

  3. Class Files • The actual file that you use to code the Java Language • Created after you create a Java Project in Eclipse • .java file extension • A “public class” means that any program can access the program (the code you type code inside the .java file) • The word “Tutorial” below is the name of the class file you created

  4. main static subclass • Executes the program and tells it what to do as soon as it starts up. • This is written inside the class: public static void main (String [] args) { } public: can be accessed from anywhere static: means it can not interact with objects (more on this later) void: will not return any values, just execute main: name of the sub file () – includes parameters/arguments for the sub

  5. main static subclass example

  6. main static subclass example Note that both the class and the subclass has the nested curly brackets (start and end)

  7. System.out.println (print line) • The most basic Java Program we can make: System.out.println(“My Favorite Show is Big Bang Theory”); Will ‘print’ this in the program: My Favorite Show is Big Bang Theory

  8. A few reminders: • Case Sensitivity • Nesting

More Related