Sunday, January 29, 2012

Ismail

Test

Friday, May 8, 2009

Calendar of Events

* Training for Suntech Club will commence again on 15 May. The topic is on Flash Development & Actionscript.

Students of the club interested in the training please come to T04-17 starting 15 May. New students who have not sign up please fill in the recruitment form first (Click here for the form).



Briefing slides for the recruitment can be found here.

Monday, March 9, 2009

Monday, March 2, 2009

Java site for extra exercises

Students who are interested to find some exercises on java to brush up your programming skills on your own, you can visit http://www.javabat.com and perform some of the exercises there.

Java Books for Beginners

If you are interested to learn java on your own or brush up on the concepts taught in class, you can go borrow the following recommended books available at NLB and bookstores:

Sams teach yourself Java 2 in 24 hours by Rogers Cadenhead
Sams teach yourself Java 2 in 21 days by Rogers Cadenhead and Laura Lemay
Beginning Java SE 6 platform : from novice to professional by Jeff Friesen

There are updated versions of these books but are not necessary for your module, since the foundation topics are the same. Any java beginner book in the library should also be beneficial for you.

Files for Java Training 2 March 09

Download the files from here:
  1. Lab0Q1.java (Answer for Q1)
  2. Lab0Q2.java (Answer for Q2)
  3. Lab0Q3.java (Answer for Q3)
Students can visit http://java.sun.com/javase/6/docs/api to read up on how to use the various java classes (e.g. those in Q1-3 of Lab0).

The main question for this training:

Write a program that reads three positive integers representing the length, width and height of a cube, and computes the volume of the cube.

Sample output:

C:\javac Cube.java
C:\java Cube

Enter length: 12
Enter width : 3
Enter height: 10
Volume = 360