Introduction of Java Fikri Fadlillah, S.T.

Slides:



Advertisements
Similar presentations
Continuation of chapter 6…. Nested while loop A while loop used within another while loop is called nested while loop. Q. An illustration to generate.
Advertisements

Object Oriented Programming in Java George Mason University Fall 2011
Object Oriented Programming in JAVA
Introduction to Java Programming
Java Intro. A First Java Program //The Hello, World! program in Java public class Hello { public static void main(String[] args) { System.out.println("Hello,
BASIC JAVA. Hello World n // Hello world program public class MyFirstJavaProgram { public static void main(String args[]) { char c = 'H'; String s =
Slide 1 of 40. Lecture A The Java Programming Language Invented 1995 by James Gosling at Sun Microsystems. Based on previous languages: C, C++, Objective-C,
Introduction to Java.
A Short Introduction to JAVA
Java PAL.  Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:
IB Computer Science II Paul Bui
Android Club Joe Richard. Welcome Rakhimov Gayrat – JOE Global Solutions (BI, CBU, MedApp) WIUT Sunet Technology (QMS, WM) Ice breaking.
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
Introduction to Programming Prof. Rommel Anthony Palomino Department of Computer Science and Information Technology Spring 2011.
By Nicholas Policelli An Introduction to Java. Basic Program Structure public class ClassName { public static void main(String[] args) { program statements.
Session One Introduction. Personal Introduction Role of programmers Robot Examination HUD & HID Uploading Code.
Java TA Session 1. Software Java Runtime Environment (JRE) java.exe Java Development Kit (JDK) java.exe, javac.exe Version 1.6 = Version 6, Version 1.7.
Введение в JAVA. Java Java – язык программирования: объектно-ориентированный кроссплатформенный строго-типизированный.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and Server Side Programming Very rich GUI libraries Portability (machine independence) A.
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
POS 406 Java Technology And Beginning Java Code
Java means Coffee Java Coffee Beans The name “JAVA” was taken from a cup of coffee.
Java Programming Presented by Daniel Rosenthal Friday, November 30 th, 2007.
Software for Translators Barcelona, January 2002.
FIRST JAVA PROGRAM. JAVA PROGRAMS Every program may consist of 1 or more classes. Syntax of a class: Each class can contain 1 or more methods. public.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
The 1 st and 2 nd tutoring session of CSc2310 Fall, 2012 Haidong Xue.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and web applications Very rich GUI libraries Portability (machine independence) A real Object.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
Overview of Java CSCI 392 Day One. Running C code vs Java code C Source Code C Compiler Object File (machine code) Library Files Linker Executable File.
CSI 3125, Preliminaries, page 1 Compiling the Program.
Java and C++ Transitioning. A simple example public class HelloWorldApp { public static void main(String[] args) { //Display the string. System.out.println("Hello.
Developed at Sun Microsystems in 1991 James Gosling, initially named “OAK” Formally announced java in 1995 Object oriented and cant write procedural.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
import java.util.Scanner; class myCode { public static void main(String[] args) { Scanner input= new Scanner(System.in); int num1; System.out.println(“Enter.
Computer Science A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
Methods What is a method? Main Method the main method is where a stand alone Java program normally begins execution common compile error, trying.
ITP 109 Week 2 Trina Gregory Introduction to Java.
1 Lecture # 2. * Introducing Programming with an Example * Identifiers, Variables, and Constants * Primitive Data Types * Byte, short, int, long, float,
Features of JAVA PLATFORM INDEPENDENT LANGUAGE JAVA RUNTIME ENVIRONMENT (JRE) JAVA VIRTUAL MACHINE (JVM) JAVA APP BYTE CODE JAVA RUNTIME ENVIRONMENT.
Object Oriented Programming Lecture 2: BallWorld.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
CPSC 233 Tutorial January 21 st /22 nd, Linux Commands.
Introduction CMSC 202 Fall Instructors Mr. Ryan Bergeron – Lecture Section 01 Tues/Thu 1:00 – 2:15 am, Sondheim 111 – Lecture Section 04 Tues/Thu.
Introduction to programming in java
Lecture 1b- Introduction
Java Programming in Unix
Intro to ETEC Java.
Exercise Java programming
using System; namespace Demo01 { class Program
Chapter No. : 1 Introduction to Java.
Compiling and Running a Java Program
Lecture Note Set 1 Thursday 12-May-05
Going from C++ to Java Jayden Navarro.
Something about Java Introduction to Problem Solving and Programming 1.
Introduction to Java Dept. Business Computing University of Winnipeg
آشنایی با جاوا Introduction to Java
Introduction to Java Programming
An Introduction to Java – Part I, language basics
Java Intro.
Chap 1 Chap 2 Chap 3 Chap 5 Surprise Me
class PrintOnetoTen { public static void main(String args[]) {
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
IB Computer Science II Paul Bui
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
Introduction to java Part I By Shenglan Zhang.
Presentation transcript:

Introduction of Java Fikri Fadlillah, S.T

Java Object Oriented Programming Mobile : J2ME, Android Desktop : JDK, JRE Enterprise : Java EE Web : Javascript

Java Program public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); }

How to Compile Java ? Create Compile Execute Source code with .java extensions Compile Typing “javac filename.java" Execute Typing “java filename"

Java Program - Variable public class HelloWorld { public static void main(String[] args) { int bil_bul4t; float mc_fl04t; String karakter; char abjad; }

Java Program - Constant public class HelloWorld { public static void main(String[] args) { int bil_bul4t = 1000000; float mc_fl04t = 10.4; String karakter = “java”; char abjad = ”a”; }

Java Program - Operator public class HelloWorld { public static void main(String[] args) { int bil_bul4t; bil_bul4t = 4+9; bil_bul4t = 4*9; bil_bul4t = 4-9; }

Java Program - Operator public class HelloWorld { public static void main(String[] args) { int bil_bul4t; bil_bul4t = 2; if( bil_bul4t > 2 ) System.out.print(“>2”); if( bil_bul4t < 2 ) System.out.print(“<2”); if( bil_bul4t <= 2 ) System.out.print(“<=2”); if( bil_bul4t >= 2 ) System.out.print(“>=2”); if( bil_bul4t != 2 ) System.out.print(“!=2”); if( bil_bul4t == 2 ) System.out.print(“==2”); }

Java Program - Operator public class HelloWorld { public static void main(String[] args) { float mc_fl04t; mc_fl04t = 4/9; }

Requirements JDK Text Editor