Create partition.java