I will upload program samples samples in the newsgroup.
Monday, January 29, 2007
Saturday, January 27, 2007
Advanced Java Course
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
Evaluation (for a total of 200 marks):
- Written test - 80 marks
- Participation - 20 marks
- Presentations - 20 marks
- Programming - 80 marks
Java Assignment 2 - SDM and SYS
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: 25Delivery:
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
You can refer to the slides as well as the links on my website.
You have to write an essay on:
- How blogging (and participatory media) can help students (a message to your juniors at SCIT)
- How blogging (and participatory media) can help budding professionals
- As a comment to this post
- As a post on you own blog with a trackback to this url.
- 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.
All submissions should be made by 2nd February.
Submissions with plagiarized material will not be considred for evaluation.