CS218 - Java Programming Resources

    ~Download / Install

  • Download Java OpenJDK, Standard Edition (SE)

    Download the Zulu Community OpenJDK, an open-source version of the Java Development Kit (JDK) Standard Edition (SE), before installing any development environments.

  • Eclipse IDE: Download

    Download the 64-bit installer of the Eclipse integrated development environment (IDE). Available for Windows, Mac, and other operating systems. NOTE: make sure you install the Java JDK before installing Eclipse!

  • Eclipse IDE: Install & Run

    Walks you through installing the Eclipse IDE for Java Developers, as well as running the program for the first time and setting up your Eclipse workspace. NOTE: the tutorial assumes you've already installed the Java Standard Edition (SE) JDK, as well as downloaded the Eclipse 64-bit installer for your Mac, Linux box, or Windows PC.

  • ~Reference

  • Java Math Class

    The official Javadoc and API for the Java Math class.

  • Java Cheat Sheets & Examples - Vogella

    Quick reference for basic Java language syntax: classes, instance variables, local variables, methods and constructors. Includes easy-to-understand examples with clear, concise explanations.

  • Java: String class

    The official Javadoc and API of the Java String class.

  • Java: Setting the PATH environment variable

    This page explains how to set the PATH variable on a variety of operating systems. Setting the path to your Java JDK distribution makes it easier to compile and run Java source and class files, respectively, from anywhere on your machine. NOTE: Set your PATH variable prior to running Eclipse for the first time to prevent startup errors.

  • SEI CERT Oracle Coding Standard for Java (Security)

    Wiki maintained by Carnegie Mellon's Software Engineering Institute detailing recommended coding practices and rules for writing secure Java applications.

  • ~Tutorials

  • Java (Beginner) Programming Tutorials (thenewboston)

    Series of short, helpful YouTube video tutorials by Bucky Roberts on Java programming. Covers the same material as the CS218 Java Programming course, as well as graphics and GUI programming.

  • Jenkov: Java Language Tutorial

    Tutorial by Jakob Jenkov introducing Java and the fundamentals of Java programming; covers all of the material in the CS218 Java Programming course. Good place to start if you are a beginner new to Java.

  • Learn Java Programming with Examples (Beginner's Book)

    A series of Java tutorials by Beginner's Book that discusses the basics of Java. Covers the same material as the CS218 Java Programming course. Includes many sample programs that you can copy and run yourself.

  • Java Formatted Strings

    Tutorial from Home and Learn on using Java's System.out.printf() command and its formatting syntax. Provides examples of formatting strings, integers, and decimal numbers. You can use the same formatting syntax with Java's String.format() method.

  • Java Tutorial: Printing an Array Using a For Loop

    Interactive tutorial demonstrating how to use a for loop to print the elements of an array in Java.

  • Java: Math Class Examples

    Tutorial and program example from GeeksforGeeks showing how to use some of the most commonly-used methods of Java's Math class.

  • Java: Random class

    Tutorial from Digital Ocean demonstrating how to use Java's Random class with examples. Also includes the newer Random class method introduced in Java 8.

  • Java: Scanner Class

    Tutorial that shows you how to use Java's Scanner class to read user input from a console. Demonstrates the class's most popular methods for reading input, as well as those for validating input.

  • Java: Loops

    Tutorial that discusses loops and how to write them in Java. Covers the basics of loops and Java syntax for while, for, and do-while loops. Includes examples that you can view and run.

  • Java: String Format Examples

    Examples using Java's String.format() method to format numbers and dates. Also includes a reference for Java's format specifiers (useful with the System.out.printf() method, too).

  • Java: Using String.format()

    Tutorial with examples of how to format numbers, dates, and time in Java using the String.format() method.

  • Javadoc Tutorial

    Brief tutorial on Javadocs, Java's formal, standardized documentation of code. Explains why Javadocs are useful, how they're used, and how you can create them for your own Java classes. Describes doc comment formatting, tags, and styles with an example.

  • Jenkov: Java NumberFormat Tutorial

    Examples showing you how to use Java's NumberFormat class to format numbers, currencies, and percentages.

  • Jenkov: Java SimpleDateFormat Tutorial

    Tutorial and examples showing you how to format dates and time using Java's SimpleDateFormat class.

  • Jenkov: Java Collections Tutorial

    Tutorial on Java's bulit-in data structures, including the ArrayList, HashMap, and SortedMap classes covered in the CS218 Java Programming and CS216 Data Structures courses

  • Jenkov: Java Exceptions Tutorial

    Covers try-catch blocks, try-with-resource blocks, checked vs. unchecked exceptions, and other related topics.

  • Eclipse

  • Eclipse: Changing the Appearance (Theme, Colors & Fonts)

    Brief tutorial that shows you how to change the theme of your Eclipse IDE, as well as individual colors and fonts.

  • Eclipse: Changing the Java Code Style Formatting

    Tutorial walking you through how to edit your Java code style formatting preferences using Eclipse's Formatter tool. Shows you how to set the size of tab indents; the format of code comments; and the placement of curly braces and control statements.

  • Eclipse: Configure to Automatically Update Code Formatting on Saving

    Brief tutorial showing you how to set your Eclipse preferences so the IDE automatically cleans the formatting of your code each time you save it.

  • Eclipse: Creating and Running a Project

    Tutorial explaining how to create a new Java project in Eclipse. Shows you to create a project, add a Java class to the project, add code to the main() method, and run the project. NOTE: skip down to the section titled "Creating Java Project with Eclipse" and begin the tutorial there.

  • Eclipse: Downloading & Enabling Javadocs

    Tutorial that shows you how to download the Java 10 Standard Edition (SE) documentation (or "Javadocs"), then link it to Eclipse. Doing so gives you access to the Javadoc for a class or method directly in Eclipse's code editor.

  • Eclipse: Fixing Broken Code Auto-completion

    A stackoverflow thread that explains how to fix Eclipse code auto-completion (i.e., Content Assist) if it stops working. Restore the default options for Content Assist by following the accepted answer's solution.

  • Eclipse: Generating Javadocs

    Tutorial that walks you through the process of generating Javadocs for your commented Java classes.

  • Eclipse: Importing a Project

    Brief tutorial that shows you how to import an existing Eclipse project (zipped or unzipped) into your workspace.

  • Eclipse: Tips & Tricks

    Tutorial showing you how to perform a number of small, but useful tasks in Eclipse - particularly those whose commands are a bit buried in menus. Tips include how to rename things, find usages of things, delete a project, reformat code, and open your project's folder in File Explorer or Finder (helpful when you need to submit a project to Canvas.)