Introduction to Computer Science, IDC Herzliya


  • News
  • Lectures
  • Recitations
    • Week 1, Introduction
      • Week 2, Data and Variables
        • Week 3, Flow Control
          • Weeks 4-5, arrays and classes>
            • Arrays
              • Writing classes
              • Week 6>
                • VIC
                  • Exceptions
                  • Week 8, Javadoc + TicTacToe
                    • Week 9, Algorithms
                      • Week 10, collections and text
                        • Week 11, Inheritance
                          • Week 12, Polymorphism
                          • Homework
                            • Exercise 1>
                              • Exercise 1
                                • Solution 1
                                • Exercise 2>
                                  • Exercise 2
                                    • Solution 2
                                    • Exercise 3, Flow Control>
                                      • Exercise 3
                                        • Solution 3
                                        • Exercise 4, arrays and writing classes I>
                                          • Exercise 4
                                            • Solution 4
                                            • Exercise 5 (VIC)>
                                              • Exercise 5
                                                • Solution 5
                                                • Exercise 6 (previously 5), arrays and writing classes II>
                                                  • Exercise 6
                                                    • Solution 6
                                                    • Exercise 7 (algorithms)>
                                                      • Exercise 7
                                                        • Solution
                                                        • Exercise 8>
                                                          • Exercise 8
                                                            • Solution 8
                                                            • Exercise 9>
                                                              • Exercise 9
                                                                • Solution
                                                                • Exercise 10>
                                                                  • Exercise 10
                                                                    • Solution
                                                                  • Questions and Answers
                                                                    • HowTo
                                                                      • Rules
                                                                        • Forum
                                                                        • Syllabus
                                                                        • Grades
                                                                        • Team
                                                                        • Resources
                                                                          • Links and Books
                                                                            • Homework Submission Guidelines
                                                                              • Individual Work Policy
                                                                                • Programming Style Guidelines
                                                                                  • Soft Landing
                                                                                    • Java Development Environment


                                                                                    Recitation #1, Introduction to Java Programming


                                                                                    October 23, 2009
                                                                                    Introduction to some of the basic elements of the Java programming language. All of these elements will be taught deeper later in the course. This is just the tip of the iceberg.
                                                                                    recitation_1.pdf
                                                                                    File Size: 2753 kb
                                                                                    File Type: pdf
                                                                                    Download File


                                                                                    Recitation #2, Data & Variables


                                                                                    October 30, 2009
                                                                                    Talking about data and the different variable types: primitives and complex (classes). How to execute arithmetic expressions on primitive types, how to instantiate new objects out of definition classes, their states and methods and how to use container classes.
                                                                                    Examples of using several basic classes like Random, Scanner, String and Math.
                                                                                    week2_data_and_variables.pdf
                                                                                    File Size: 1382 kb
                                                                                    File Type: pdf
                                                                                    Download File


                                                                                    Recitation #3, Flow Control

                                                                                    All about loops, branches and decision making in your code. Also attached is a partial walkthrough of the styling conventions.
                                                                                    week3_flow_control.pdf
                                                                                    File Size: 979 kb
                                                                                    File Type: pdf
                                                                                    Download File

                                                                                    week3_flow_control_worksheet.pdf
                                                                                    File Size: 481 kb
                                                                                    File Type: pdf
                                                                                    Download File

                                                                                    week3_styling_conventions.pdf
                                                                                    File Size: 724 kb
                                                                                    File Type: pdf
                                                                                    Download File


                                                                                    Recitation #4, Computers Architecture

                                                                                    We will open up computer box and check under the hood, see how really things work on the underlying, low levels of the computers and how programming works. We will use the fabulous VIC program to simulate a real computer.
                                                                                    week4_computer_architecture.pdf
                                                                                    File Size: 1366 kb
                                                                                    File Type: pdf
                                                                                    Download File


                                                                                    Recitation #5, Writing Classes

                                                                                    As suitable for one of the deepest subjects of object oriented programming, this is a very long presentation. Go through the slides one by one to unveil the secrets of OOP: What is an object state? How to write a method? How is it all reflected in memory? parameters, return values, encapsulation, aliasing, String vs. StringBuffer, and anything else
                                                                                    week5_classes_and_objects.pdf
                                                                                    File Size: 944 kb
                                                                                    File Type: pdf
                                                                                    Download File

                                                                                    week5_classes_and_objects_w_notes.pdf
                                                                                    File Size: 726 kb
                                                                                    File Type: pdf
                                                                                    Download File


                                                                                    Recitation #6, Arrays

                                                                                    We will learn all about single and multi dimensional arrays with some basic examples. We will also learn about the command line arguments. We will then practice by writing a simple tic-tac-toe game together, and implement what we've learnt.
                                                                                    week6_arrays.pdf
                                                                                    File Size: 3271 kb
                                                                                    File Type: pdf
                                                                                    Download File

                                                                                    week6_arrays_w_notes.pdf
                                                                                    File Size: 981 kb
                                                                                    File Type: pdf
                                                                                    Download File


                                                                                    Recitation #7, Algorithms

                                                                                    Simple collection sorting and element searching algorithms.
                                                                                    week7_algorithms.pdf
                                                                                    File Size: 410 kb
                                                                                    File Type: pdf
                                                                                    Download File

                                                                                    week7_algorithms_w_notes.pdf
                                                                                    File Size: 373 kb
                                                                                    File Type: pdf
                                                                                    Download File

                                                                                    week7_joongle.pdf
                                                                                    File Size: 1010 kb
                                                                                    File Type: pdf
                                                                                    Download File

                                                                                    week7_joongle_w_notes.pdf
                                                                                    File Size: 591 kb
                                                                                    File Type: pdf
                                                                                    Download File


                                                                                    Recitation #8, Recursions

                                                                                    Recursions are recursions!
                                                                                    week8_recursions.pdf
                                                                                    File Size: 1264 kb
                                                                                    File Type: pdf
                                                                                    Download File

                                                                                    week8_recursions_w_notes.pdf
                                                                                    File Size: 482 kb
                                                                                    File Type: pdf
                                                                                    Download File


                                                                                    Recitation#9, Introduction to data structures 

                                                                                    Theory recap: why use DS? What different DS exist? Abstraction vs. implementation, how to choose our DS? Linked List, Exercise: Barnes & Noble, Queue.
                                                                                    week10_data_structures.pdf
                                                                                    File Size: 1370 kb
                                                                                    File Type: pdf
                                                                                    Download File

                                                                                    week10_data_structures_w_notes.pdf
                                                                                    File Size: 1040 kb
                                                                                    File Type: pdf
                                                                                    Download File


                                                                                    Recitation #10, Inheritance & Polymorphism

                                                                                    The 10 rules of Java inheritance and polymorphism.
                                                                                    week11_inheritance.pdf
                                                                                    File Size: 1905 kb
                                                                                    File Type: pdf
                                                                                    Download File


                                                                                    Recitation #11, Exceptions & Advanced Inheritance Topics

                                                                                    This busy recitation includes the following:
                                                                                    Exceptions: the presentation lacks the inheritance aspect of exceptions, so make sure to fill this knowledge from somewhere else.
                                                                                    Advanced inheritance topics: abstract classes, methods and interfaces. Go through this presentation if you still don't understand what the fuss is all about.
                                                                                    Inheritance tips: just to make your life easier and put some order in your messy brains. This presentation is highly recommended.
                                                                                    week12_exceptions.pdf
                                                                                    File Size: 1023 kb
                                                                                    File Type: pdf
                                                                                    Download File

                                                                                    week12_advanced_inheritance_topics.pdf
                                                                                    File Size: 1613 kb
                                                                                    File Type: pdf
                                                                                    Download File

                                                                                    week12_inheritance_tips.pdf
                                                                                    File Size: 1058 kb
                                                                                    File Type: pdf
                                                                                    Download File



                                                                                    Create a free website with Weebly