Solved CodeHS

CodeHS AP Computer Science A Solutions Resource




***THIS WEBSITE IS INTENDED SOLELY FOR EDUCATIONAL STUDYING PURPOSES. PLEASE DO NOT USE THIS WEBSITE FOR PURPOSES OF ACADEMIC DISHONESTY!! I AM NOT LIABLE FOR ANY CONSEQUENCES YOU RECEIVE FROM YOUR CHEATING***


Unit 2: Basic Java








For Loops

2.9.4: Repeat 1000 Times

2.9.8: Print The Odds



Solutions by Unit:

Unit Unit Name Solutions
What is CodeHS? Click Here
Unit 1 Intro to Programming with Karel The Dog Click here
Unit 2 Basic Java Click here
Unit 3 Methods Click here
Unit 4 Classes & Object-Oriented Programming Click here
Unit 5 Data Structures Click here
Unit 6 Algorithms and Recursion Click here
Unit 7 AP Test Practice Click here
Unit 8 Final Project Click here