Java Certification Exam essentials: Compiling and running code

This first tutorial uses the game of rock-paper-scissors to hammer home the basic concepts of writing, compiling and running Java code.

Once you've installed the Java Development toolkit (JDK) and configured JAVA_HOME, the next step is to start writing some Java code. In this tutorial, the fourth in a series, we simply focus on creating a single Java class with a runnable main method that prints out the hypothetical result of playing a single game of rock-paper-scissors. There is no input taken from the user and there is no complex business logic. In this first tutorial, the real goal is to get a simple class coded, compiled and running. Once you've accomplished this significant task, you'll be ready to move on to further tutorials that will get iteratively more complicated as your Java programming skills progress.

This was last published in August 2012

Dig Deeper on JSRs and APIs



Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.