Monday, January 29, 2007

IO in Java






I will upload program samples samples in the newsgroup.

Saturday, January 27, 2007

Advanced Java Course

Welcome to the Advanced Java course. I look forward for an informative and engaging semester with all the students. All details of the course have been listed below. If you have any questions, please post them as comments to this post.

Course Duration: 10 weeks

Course Contents:
  • IO In Java
  • Generics
  • Collections in Java
  • Autoboxing
  • RTTI (Run Time Type Information)
  • Introduction to making user interfaces in Java
  • Multi threading in Java
  • Introduction to Java security
  • JDBC
  • Networking in Java with Sockets and RMI
  • Annotations
  • Introduction to web based programming in Java
Credits: 4 credit points

Evaluation (for a total of 200 marks):
  1. Written test - 80 marks
  2. Participation - 20 marks
  3. Presentations - 20 marks
  4. Programming - 80 marks

Java Assignment 2 - SDM and SYS

The Assignment:

Make a utility that counts the number of lines of actual code in a Java source file. For the purpose of this exercise, a line is counted if it contains something other than whitespace or text in a comment. Some simple examples:
  -   // This file contains 3 lines of code
1 public interface Dave {
- /**
- * count the number of lines in a file
- */
2 int countLines(File inFile); // not the real signature!
3 }

and…

  -   /*****
- * This is a test program with 5 lines of code
- * \/* no nesting allowed!
- //*****//***/// Slightly pathological comment ending...
-
1 public class Hello {
2 public static final void main(String [] args) { // gotta love Java
- // Say hello
3 System./*wait*/out./*for*/println/*it*/("Hello/*");
4 }
-
5 }

Remember that Java comments are either "//" to the end of line, or "/*" to the next "*/". The block comments do not nest. There may be multiple /*…*/ comments on a line. Whitespace includes tabs, spaces, carriage returns, and vertical tabs. Oh, and remember that comment start sequences that appear inside Java strings should be ignored.

Goals of the Assignment

The mixture of line-based things (single line comments, blank lines, and so on) with the stream-based block comments can make solutions slightly ugly. While coding your solution, consider the structure of your code, and see how well it fits the structure of the problem. As with most of these kata, consider coding multiple alternative implementations. Does what you learned on the first tries affect your approach to subsequent ones?

Marks: 25

Delivery:
You must complete the assignment by 31 January 2007. Once you have completed the assignment, take an appointment with Firoz in the lab and demo the working program to him.


If you have any questions, please post them as comments here.

Thursday, January 25, 2007

New Media Workshop Test

Students who attended the New Media workshop as part of the Emerging Trends series will be evaluated online on the basis of a blog post.

You can refer to the slides as well as the links on my website.

You have to write an essay on:
  1. How blogging (and participatory media) can help students (a message to your juniors at SCIT)
  2. How blogging (and participatory media) can help budding professionals
The essay can be submitted in any of these modes:
  1. As a comment to this post
  2. As a post on you own blog with a trackback to this url.
  3. As a comment on a post written by any of your classmates. In such a comment, you must highlight the pros and cons of the position taken by the author of the blog.
Your essay should be greater than 500 words, but NOT longer than 1000 words.

All submissions should be made by 2nd February.
Submissions with plagiarized material will not be considred for evaluation.