UML Class diagram for First.java
UML Class diagram (IntelliJ style) for First.java

ICT-4361 Homework 1


This exercise is to familiarize the student with the programming tools for the course, and to give the student an early opportunity to receive exercise feedback from the instructor.

Additionally, the student will have some experience accessing Java resources over the Internet.

Please address this problem as early as possible to ensure you have a proper environment available for accomplishing all other homework assignments.

What to Hand In

For this, as well as future programming exercises, hand in a listing of the program (which must be formatted in a reasonable style), and sample run(s) of the program.

Please pay attention to your code indentation to ensure your paper is easy to read and understand.

Canvas submission instructions:
Please combine multiple files into a single "zip" archive, and save it in a location that you will remember. When you are ready to submit the assignment, open the assignment you are submitting a soluction for, and attach your file.


  1. A Compiler to Know And Love
    1. Ensure you have a Java development environment installed and working.

      The book's disk has Netbeans 6.5 and JDK 6. You may use that, or you can download and use up-to-date versions from the netbeans (www.netbeans.org) and a JDK from Oracle's web site (www.oracle.com/us/technologies/java/).

      Eclipse is another great environment if you'd prefer to use it (www.eclipse.org).

      See the instructor handouts beginning with a "2" for details on specific environments (including the command line environment) for how to create, compile, and run Java programs. While these might not all be up to the latest version, the steps to create and run a program are the same.

    2. Enter the following simple program into the file First.java
      // ICT 4361 
      // Author: Put Your Name Here 
      // Filename: First.java
      import java.util.Date; 
      public class First { 
          private Date today = new Date(); 
          private String name = "Put Your Name Here"; 
          public String getName() { 
              return name; 
          public Date getToday() { 
              return today; 
          public String getLineOfDashes() { 
              return "----------------------------------------------------------------"; 
          public static void main (String[] args) { 
              First theFirst = new First(); 
              System.out.println("Today is " + theFirst.getToday()); 
              System.out.println("My name is " + theFirst.getName()); 
              System.out.println("I've just finished my first Java homework!"); 
    3. Replace your own name for all the "Put Your Name Here" placeholders, compile it, and run it. Capture the results for output.
  2. A Tutorial To Know and Love
    1. This assignment is to familiarize you with some of the many online resources for Java. Sun has a tutorial on its site for learning the Java language (docs.oracle.com/javase/tutorial/index.html) It's rather terse, but is example driven. The Java site also has a number of other helpful resources for the course, including on-line APIs, forums for discussion of the use of Java features, and other useful content. Visit the site and bookmark it. Read through the "Strings" section, and try the examples (not to hand in, unless you have a question). You may also find it helpful as a supplement to the course handouts.



Criteria Weight
Problem I: Changed the Author in the top comment on line 2 25%
Problem I: Changed the name in the private String initialization on line 6 25%
Problem I: Compiled program, ran program, captured output 50%