JAVA / Code (page 2)
public class Main { public static void main(String[] args) { String name = "Lucille"; System.out.println(name); } }
public class Main { public static void main(String[] args) { double myDouble = 108.24d; int myInt = (int) myDouble; System.out.println(myDouble); System.out.println(myInt); } }
public class Main { int painterbirthYear; String painterName; public Main(int year, String name) { painterbirthYear = year; painterName = name; } public static void main(String[] args) { Main thePainter = new Main(1864, "Toulouse Lautrec"); System.out.println(thePainter.painterbirthYear + " " + thePainter.painterName); } }
public class Main { public static void main(String[] args) { int x = 40; int y = 25; System.out.println(x < y); } }
public class Main { public static void main(String[] args) { System.out.println("Come on !"); System.out.println("Let's go to the beach..."); System.out.println("And swim"); System.out.println("And have fun !"); } }
public class Main { public static void main(String[] args) { int x = 48; ++x; System.out.println(x); } }
public class Main { public static void main(String[] args) { int x = 48; --x; System.out.println(x); } }
public class Main { public static void main(String[] args) { int x = 68; int y = 22; System.out.println(x / y); } }
Reproduce this code, choosing one of the compilers below (don't copy and paste! It would be too easy). They all have the same function, just choose one according to your preferences.
When copying your code, replace the existing (default) code already in the compiler with your own.
Warning! For some of these compilers, you must choose the programming language yourself from the menu that is then offered. Of course, don't forget to click on RUN!
Some of the external links presented below, are not under the direct responsibility of Fond of Code. We cannot therefore be held responsible for the quality/Viability, or the temporary nor permanent interruption of some of them.
» Creation date: 1995
* Created by James Gosling and Patrick Naughton
* Developed by Oracle Corporation
* Influenced by Objective C, Pascal...
* Multi-platform
The comments you leave us are systematically subject to rigorous moderation. Incivility and slander, threats, intimidation of all kinds, more generally all gratuitous verbal violence, or the dissemination of unverified information... are not tolerated. We also reserve the right to publish only comments which effectively advance the debate and allow a better understanding of the subject covered by the article presented on this page (as well as all its ramifications) and this, whatever its overall content.
Fond of Code TM © ®
All rights reserved - Protected Trademark/Logo (INPI)
Legal structures based in
Nice - FRANCE
Montreal - Canada
By appointment
SIRET: 41138921600028 (France)
Inc. : 661515-5 (Canada, Qc.)
Official resumption in France : March 2025
Beta version of the website : May 2024
Implementation : July 2024
Launch of initial activity : 1996 (Europe and North America)
New version of the website : April 2025
Fond of Code official launch : May 2025