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

                                                                                    How to Use Your Goodies

                                                                                    These goodies are provided to you by the course staff for your own use. Sometimes, in order to understand a subject or to complete an exercise, you will be asked to use Java code that had been written by us. This code is wrapped in a JAR file and can be downloaded from this page. In order to use these JARs, follow these instructions:
                                                                                    1. Create a folder on hard-disk that will contain all our JARs. Let's say you called it C:\IDC\Intro2CS\Goodies\
                                                                                    2. Download the JAR file to that folder by clicking the link called "Download File" on this page. Make sure the JAR is downloaded to that folder. 
                                                                                    3. Add the JAR file to the CLASSPATH variable. This should include both the path and the JAR filename. For example, if you're downloading logo_turtle.jar and your CLASSPATH was "." then now it should be ".;C:\IDC\Intro2CS\Goodies\logo_turtle.jar".
                                                                                    4. Sometimes the exercise will tell you to import classes. Follow those directions.
                                                                                    5. You're ready to go. Click the API link to see all the classes and methods the JAR provides.

                                                                                    Good luck!




                                                                                    Goodie

                                                                                    API

                                                                                    JAR


                                                                                    Turtle

                                                                                    The Turtle is a graphical object in the shape of a real turtle. The class creates a canvas on the screen. Each Turtle instantiation draws a new turtle object on the canvas. Each such turtle can be controlled: you can move them around, hide them and make them leave a trail on the canvas, so you can actually make drawings on the canvas.
                                                                                    API
                                                                                    logo_turtle.jar
                                                                                    File Size: 186 kb
                                                                                    File Type: jar
                                                                                    Download File




                                                                                    Create a free website with Weebly