Please enable JavaScript to use CodeHS

CodeHS Practice Problems

Get familiar with coding using our Practice Problems.

Java Practice Problems

Basics

LEVEL 1

Practice: 2pts - Unopened Area of a Circle w/ Radius

Practice: 1pt - Unopened Square a Double Type

Practice: 1pt - Unopened Cube of a Number

Practice: 1pt - Unopened Weight of a Car Carrier Trailer

Practice: 1pt - Unopened Purchase Calculator

Practice: 1pt - Unopened Address Number Combinations

Practice: 2pts - Unopened Area of a Triangle

Strings

LEVEL 1

Practice: 3pts - Unopened Add Three Strings

Practice: 2pts - Unopened Screaming

Practice: 2pts - Unopened Double Phrase

Practice: 3pts - Unopened Lowercase

Practice: 2pts - Unopened Find the Key

Practice: 2pts - Unopened Find the Key, Part 2

Practice: 3pts - Unopened Salutation

Practice: 2pts - Unopened **emphasize**

Math

LEVEL 1

Practice: 2pts - Unopened Sum Numbers

Practice: 2pts - Unopened Product Range

Practice: 3pts - Unopened Average

Practice: 3pts - Unopened Area of a Circle w/ Diameter

Practice: 3pts - Unopened Area of a Trapezoid

Practice: 3pts - Unopened Celsius to Fahrenheit

Practice: 3pts - Unopened Shooting Percentage

Booleans

LEVEL 1

Practice: 3pts - Unopened Is Divisible

Practice: 2pts - Unopened At Capacity

Practice: 3pts - Unopened Heart Rate

Practice: 3pts - Unopened Enough Paint

Practice: 3pts - Unopened Sum Evens

Practice: 3pts - Unopened Nums in Order

Practice: 2pts - Unopened isEven

Practice: 2pts - Unopened Password Length

Practice: 3pts - Unopened Can we Make it?

Arrays

LEVEL 1

Practice: 2pts - Unopened Array First Element

Practice: 3pts - Unopened Array Last Element

Practice: 3pts - Unopened Array Middle Element

Practice: 2pts - Unopened Creating an Array

Practice: 3pts - Unopened Initializing an Array

Practice: 4pts - Unopened Array Sum

Practice: 4pts - Unopened Array Multiply

2D Array

LEVEL 1

Practice: 3pts - Unopened Sum All

Practice: 2pts - Unopened isSquare

Practice: 4pts - Unopened Multiplication Table

Practice: 4pts - Unopened Value in Row

Practice: 3pts - Unopened Max Value

Practice: 2pts - Unopened 2D Array Creator

ArrayLists

LEVEL 1

Practice: 2pts - Unopened ArrayList First Element

Practice: 3pts - Unopened ArrayList Last Element

Practice: 3pts - Unopened ArrayList Middle Element

Practice: 3pts - Unopened Initializing an ArrayList

Practice: 4pts - Unopened ArrayList Sum

Practice: 4pts - Unopened ArrayList Multiply

Strings

LEVEL 2

Practice: 3pts - Unopened Make even

Practice: 4pts - Unopened Like Totally Awesome

Practice: 4pts - Unopened Replace Meat

Practice: 4pts - Unopened Find the Second Instance

Practice: 4pts - Unopened A or An?

Practice: 5pts - Unopened Switch the Words

Practice: 4pts - Unopened Reverse the String

Practice: 4pts - Unopened Just First and Last

Math

LEVEL 2

Practice: 5pts - Unopened Repeat Last 2 Characters

Practice: 7pts - Unopened Digit of Square Root of 2

Practice: 6pts - Unopened Effective Field Goal Percentage

Practice: 6pts - Unopened True Shooting Percentage

Practice: 5pts - Unopened Payday

Practice: 6pts - Unopened Monthly Pay

Booleans

LEVEL 2

Practice: 3pts - Unopened Tax Rate

Practice: 4pts - Unopened Lucky 13

Practice: 5pts - Unopened Enough Paint 2

Practice: 4pts - Unopened Multiple A's

Practice: 7pts - Unopened Contains Vowels

Practice: 4pts - Unopened How Tired Am I?

Arrays

LEVEL 2

Practice: 5pts - Unopened Array Max

Practice: 5pts - Unopened Array Min

Practice: 5pts - Unopened Array Average

Practice: 6pts - Unopened Reverse Array

Practice: 5pts - Unopened Array Swap First Last

Practice: 6pts - Unopened Array Repeat

Practice: 8pts - Unopened Array Element Repeat

Practice: 5pts - Unopened Array Search

2D Array

LEVEL 2

Practice: 5pts - Unopened Invert Array

Practice: 7pts - Unopened Reverse

Practice: 5pts - Unopened Split

Practice: 4pts - Unopened Team +/-

Practice: 9pts - Unopened Magic Square

Practice: 7pts - Unopened Consecutive Values

ArrayLists

LEVEL 2

Practice: 5pts - Unopened ArrayList Max

Practice: 5pts - Unopened ArrayList Min

Practice: 5pts - Unopened Reverse ArrayList

Practice: 5pts - Unopened ArrayList Swap First Last

Practice: 6pts - Unopened ArrayList Repeat

Practice: 8pts - Unopened ArrayList Element Repeat

Practice: 5pts - Unopened ArrayList Search

Practice: 3pts - Unopened Reverse String

Practice: 7pts - Unopened Binary Search

Practice: 6pts - Unopened Greatest Common Divisor

Practice: 5pts - Unopened Least Common Multiple

Practice: 4pts - Unopened Recurring Letters

Practice: 2pts - Unopened Sum

Practice: 5pts - Unopened More Karel Letters

Practice: 6pts - Unopened Valid Password

Practice: 5pts - Unopened How many Dogs?

Practice: 8pts - Unopened Replace All Plates

Practice: 5pts - Unopened Count Your Spaces

Practice: 7pts - Unopened Start with a Capital

Practice: 7pts - Unopened Even Up, Odd Down

Strings

LEVEL 3

Practice: 5pts - Unopened Fix the Bad Apples

Practice: 6pts - Unopened Replace Like

Practice: 7pts - Unopened Split the String

Practice: 7pts - Unopened Double a Word

Practice: 9pts - Unopened Finding a Word

Objects

LEVEL 1

Practice: 5pts - Unopened Getting the Width

Practice: 5pts - Unopened Update the Circle

Practice: 5pts - Unopened Area of a Triangle

Practice: 5pts - Unopened Max Student

Practice: 5pts - Unopened Create a Room

Practice: 5pts - Unopened Increase the Radius

Objects

LEVEL 2

Practice: 5pts - Unopened Create a Class

Practice: 5pts - Unopened Only Blue

Practice: 5pts - Unopened Turtles are Pets Too!

Practice: 5pts - Unopened Animal Sounds

Practice: 5pts - Unopened Test average

Practice: 5pts - Unopened Words

Arrays

LEVEL 3

Practice: 5pts - Unopened Shift Elements to the Left

Practice: 7pts - Unopened Compute Mode

Practice: 5pts - Unopened All Cats

Practice: 5pts - Unopened Consecutive Pairs

Practice: 5pts - Unopened Duplicates

Practice: 5pts - Unopened Count Evens

ArrayLists

LEVEL 3

Practice: 5pts - Unopened Average Value

Practice: 3pts - Unopened Shift Elements to the Right

Practice: 5pts - Unopened Compute Mode

Practice: 5pts - Unopened All Dogs

Practice: 5pts - Unopened Consecutive Pairs

Practice: 5pts - Unopened Duplicates

Practice: 5pts - Unopened Count Odd

CodeHS Practice FAQ

Still have questions? We’re happy to answer them, just reach out to hello@codehs.com!