Search

AP Comp Science

AP Computer Science Summer Work

Welcome to the cool world of computer programming in Java. We start coding the first day of school. It’s important that you have your setup at home ready to go. This is so you can work at home on projects you don’t complete in class.


Part I: Install Java on your laptop or desktop computer.
1. Install BlueJ from the "Company Portal" on your school-issued device (Surface Pro).

2. For personal devices, use the BlueJ tutorial at http://www.bluej.org/tutorial/tutorial-201.pdf for installation directions.

Part II: Create a project to make sure everything works.
1. Click File | New Project. Type the name of the project: myFirstProject. A project will keep all of your .java file(s) together for easy management.
2. Click NewClass. Enter myFirstClass as the class name.
3. Double click the box that appears. Delete everything in the file.
4. Type in the following code. You don’t need to know what any of this means yet.


public class myFirstClass
{
  public static void main(String args[]){
    System.out.println("My program works.");
   }
}
5. Save the file.
6. Click compile. If you typed everything in correctly (it has to be EXACT—capitalization and spacing), you should have no problems.
7. Close the file.
8. In the window, right click the myFirstClass box, and select the void main().
9. Another window should pop up and print out “My program works.’


Part III: Some beginning stuff - There will be a "Summer Quiz" on the first day of school.

You should check your understanding of the information that can be found on the following websites. You don’t need to know how to code (though you should look at the code examples), but you do need to have the general idea.

https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html (this is Java vocabulary)

https://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html (these are Java operators)

https://docs.oracle.com/javase/tutorial/java/nutsandbolts/expressions.html (these are Java blocks)

https://docs.oracle.com/javase/tutorial/java/nutsandbolts/flow.html  (these are Java control statements)