
Java is a programming language (♦ see DEF) multiplatform and object oriented, created in 1995. The Oracle company owns the Java technology, after having bought it from Sun Microsystems.
Java allows you to create, among other things, Web App. and websites, software and games .
Code Examples
→ Let's start with very simple codes. The more you progress, page after page, the more sophisticated the scripts will be. However, you must go over 30 to 40 pages per level, before moving on to the next step...
→ In order to evaluate your codes, click on the icon on the left at the bottom of the page (gears), then choose a compiler from the list that will be open in another tab. Finally, test your work.
NOW REPRODUCE AND IMMERSE YOURSELF!
C 0001 - Hello World !
public class Main { public static void main(String[] args) { System.out.println("Hello World !"); } }
C 0002 - Variables
public class Main { public static void main(String[] args) { String name = "John"; System.out.println(name); } }
C 0003 - Types of informations
public class Main { public static void main(String[] args) { int myNum = 10; // Integer float myFloatNum = 3.99f; // Floating point char myLetter = 'F'; // Character boolean myBool = true; // Boolean String myText = "Bonjour tout le monde !"; // String System.out.println(myNum); System.out.println(myFloatNum); System.out.println(myLetter); System.out.println(myBool); System.out.println(myText); } }
C 0004 - Declarations and Statements
public class Main { public static void main(String[] args) { int x = 60; int y = 28; if (x > y) { System.out.println("x is bigger than y"); } } }
C 0005 - Variables
public class Main { public static void main(String[] args) { int myNum; myNum = 45; System.out.println(myNum); } }
C 0006 - Variables
public class Main { public static void main(String[] args) { int myNum = 25; myNum = 45; System.out.println(myNum); } }
C 0007 - Data Types
public class Main { public static void main(String[] args) { int myNum = 68; // integer (whole number) float myFloatNum = 10.45f; // floating point number char myLetter = 'J'; // character boolean myBool = false; // boolean String myText = "Good day"; // String System.out.println(myNum); System.out.println(myFloatNum); System.out.println(myLetter); System.out.println(myBool); System.out.println(myText); } }
C 0008 - Booleans
public class Main { public static void main(String[] args) { boolean iloveprogramming= true; boolean iloveworkingduringthenight = false; System.out.println(iloveprogramming); System.out.println(iloveworkingduringthenight); } }

CHOOSE YOUR COMPILER
Reproduce this code, choosing one of the compilers below (♦ see DEF) (don't copy-paste! It would be too easy). They have the same use, just pick up one according to your preferences.
When you copy your code, replace the existing code (by default) with your own.
Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !