Old version
This is the CS 112 site as it appeared on December 31, 2020.
Lab 1: Getting started
Task 0.0: Review lab policies
-
Structure. In general, labs will be posted in advance, and you will have the opportunity to review the lab on your own. The lab session will begin with a review of the solutions for each of the lab tasks to ensure you have a good understanding of the material. The class will then have chance to ask questions. After that, there will be a series of challenge exercises for you to complete and review with the TF.
-
Attendance:
-
Weekly attendance in lab is important. There are labs scheduled throughout the day and you should be able to find a lab that works with your schedule and time zone. Lab sessions will run as either fully remote (one of which will be recorded) or in person.
Students who wish to attend the lab in person will have the opportunity to sign-up to any of the in-person labs. Likewise, students who are attending labs remotely will have the opportunity to attend any of the remote labs.
-
-
Participation:
-
To get full credit for participation in lab, you must work productively and submit the work that you complete as specified by the TF. You will not be penalized if you cannot finish all of the lab exercies, but we strongly encourage you to complete the exercises outside of lab, and check your answers with the solutions when posted.
-
Don’t hesitate to ask for help! The course staff is more than happy to help you with any questions that you may have, and we will be coming around to assist you during lab.
-
-
Collaboration.
- You are encouraged to work with your classmates on the exercises in the lab, but only in a virtual setting. All labs that run in person must follow the safety guidelines as specified by the University.
Task 1: The Basics
Using folders
We strongly encourage you to create a separate folder for each lab
and each problem set, so that you can more easily keep track of
your work. For example, you could create a folder called lab1
for your work on this lab, and put all of the files for this lab
in that folder.
Task 1.1: Creating a new Java program (HelloWorld)
In Lab 0, you should have installed your IDE on your computer. If you have not, please work together with a partner and download the necessary software on your computer after lab is over.
To see how to use it, let’s take the following steps together:
-
Start up your Java IDE. If you have trouble finding the program, please let us know.
-
Many if you are new to Java, so just follow the instructions of your Lab TF to write and test your first Java program! Don’t worry about the details, we will cover them in our next lecture. Today we just want you to get comfortable with the IDE.