Please choose the correct solution to the question: How to find studs in a wall

Solution1: Move a beer can along a wall, when the can clings to the wall, its found a nail and you have found a stud.

Solution2: Move a magnet along a wall, when the magnet clings to the wall, its found a nail and you have found a stud.

Answer format: solution1/solution2