Presentation is loading. Please wait.

Presentation is loading. Please wait.

Session One Introduction. Personal Introduction Role of programmers Robot Examination HUD & HID Uploading Code.

Similar presentations


Presentation on theme: "Session One Introduction. Personal Introduction Role of programmers Robot Examination HUD & HID Uploading Code."— Presentation transcript:

1 Session One Introduction

2 Personal Introduction Role of programmers Robot Examination HUD & HID Uploading Code

3 Java General programming language Easier than C++ Enforces object-oriented programming Parts of Java: JDK – Java Development Kit, for writing code JRE – Java Runtime Environment, where code is run JVM – Java Virtual Machine, runs code

4 Eclipse IDE Integrated Development Environment Source Code Editor Where you write code Compiler Translates human (high-level) into computer (low-level) Debugger Can run and debug compiled code

5 New Java Projects Contains source files for building programs File > New > Java Project Alternatively, Ctrl+N > Java > Java Project Packages Organization; similar to folders Classes Where code is written and executed

6 New Class Wizard Source folder / Package Location of the class Name Noun, capitalized, mixed case We will cover almost everything else later.

7 public static void main(String[] args) Commonly referred to as the main method Methods are sections of code in a class that can be executed Everything in between the curly brackets { } will be run Other than that, ignore everything

8 “Hello World!” Program A common trivial program that outputs text saying “Hello world!” System.out.print(“Hello World!”) System.out.println(“…”) Prints text out and then jumps to the next line down Basic string manipulation Concatenation

9 Comments Text completely ignored by the compiler Three types of comments //endline comment, single line /* block comment, multiple lines */ /** Javadoc comment */ Useful for letting other programmers know what you’re doing Also lets you make notes for yourself

10 Variables Concepts of memory Different types of data Declaration Assignment Initialization

11 Next Session Primitive Data Types Other kinds of data Integers Rational Numbers Logic Operators Arithmetic + - * / % Relational / Logical Shortcuts


Download ppt "Session One Introduction. Personal Introduction Role of programmers Robot Examination HUD & HID Uploading Code."

Similar presentations


Ads by Google