1 October 2021

Coming Up

Here is where we are headed the next few days.

  1. Merge Sort: a recursive sort
  2. Compehensions: Say what YOU WANT.
  3. Java

Test your Java Install Get this program and name it Hello.java. In VSCode, select New File with language java. VSCode will ask to install Java support. Do the installs. Make sure you select OpenJDK 15 or later.


public class Hello
{
    public static void main(String[] args)
    {
        System.out.println("Success!");
    }
}

Navigate your command window to the directory containing this program. Compile it like so. (the $ just represents your command window prompt. Don't type it.

$ javac Hello.java

List your files. You should see a file named Hello.class. To run, enter java Hello in your command window. If all is well you will see this.

$ javac Hello.java
Success!

See me or the TAs if you encounter problems.

Merge Sort

This is your first recursive sort. Other recursive sorts will appear in Advanced Java.

Comprehensions