Update PartitionList.java

Submission Result: Compile Error

Line 31: incompatible types

Submission Result: Compile Error

Line 38: incompatible types