This site is from a past semester! The current version is here.
CS2113/T Aug '19
  • Week 1 [Aug 12]
  • Week 2 [Aug 19]
  • Week 3 [Aug 26]
  • Week 4 [Sep 2]
  • Week 5 [Sep 9]
  • Week 6 [Sep 16]
  • Week 7 [Sep 30]
  • Week 8 [Oct 7]
  • Week 9 [Oct 14]
  • Week 10 [Oct 21]
  • Week 11 [Oct 28]
  • Week 12 [Nov 4]
  • Week 13 [Nov 11]
  • Textbook
  • Admin Info
  • Report Bugs
  • Slack
  • Forum
  • Project Info
  • Instructors
  • Announcements
  • File Submissions
  • Tutorial Schedule
  • Duke
  • Project Phase1 Dashboard
  • Java Coding Standard
  • samplerepo-things
  • Projects List
  • config.json templates for Reposense
  • PersonalAssistant-Duke
  • Project Phase2 Dashboard
  • Reference project - Addressbook
  • Repl.it classroom
  • Previous WeekNext Week

    Week 3 [Aug 26]

    Simple Java exercises

    If you need additional Java practise, you can work through the simple Java coding exercises on repl.it.
    The link to our classroom will be available under Links in the navigation bar.
    Note: you need to create an account on repl.it to be able to use the platform

    These exercises are optional and not graded. If you choose to do it, please set your own pace. You may ask your tutors for help if necessary, outside of the tutorials

    Team forming

    CS2113 students only: Form teams at the beginning of the tutorial. Be sure to conform to team forming constrains.

    All students:

    • Confirm your team ID with the tutor. It should be of the form MODULE-TUTORIAL_ID-TEAM_NUMBER e.g, CS2113T-W12-2 (CS2113T team from the Wed 1200 slot, team 2)

    Tutorial activity

    • Draw the class diagram for the exercise: Circle class
    • Draw the runtime state of the system when you instantiate theCircle class in the following snippet
      public class Main {
          public static void main(String[] args) {
              Circle c1 = new Circle();
              Circle c2 = new Circle(10, 2, 5.5);
              Circle c3 = new Circle(3, 3, 0.8);
          }
      }