Two Unmarked Jars Puzzle

Two Umarked Jars Puzzle
PuzzleMedium

You have an infinite water supply.

  1. With a 5-gallon jar and a 3-gallon jar (both unmarked), can you measure exactly 4 gallons?
  2. With a 4-gallon jar and a 9-gallon jar (both unmarked), can you measure all the gallon quantities from 1 to 9?

Can we make these measurements using these unmarked jars?