CSC 120

Week 1


Reading Assignment:

Read Chapter 1 and Chapter 2.1-2.8

Lab/Homework Assignment:

  1. Give a detailed step-by-step procedure for playing, and never loosing, the game of Tic-Tac-Toe.

  2. Type in (do not copy and paste) the following program into a file named HelloWorld.java and compile and run it.

    
    class HelloWorld {
    	public static void main(String[] args) {
    		System.out.println("Hello World");
    	}
    }
    
    
  3. There is en error in the following program. Try to compile it, read the error message, fix the error.

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