Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction of Java Fikri Fadlillah, S.T.

Similar presentations


Presentation on theme: "Introduction of Java Fikri Fadlillah, S.T."— Presentation transcript:

1 Introduction of Java Fikri Fadlillah, S.T

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

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

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

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

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

7 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; }

8 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”); }

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

10 Requirements JDK Text Editor

11


Download ppt "Introduction of Java Fikri Fadlillah, S.T."

Similar presentations


Ads by Google