I'm afraid I don't know Java, but the target is worked out as follows:
target = maximum target / difficulty
Note: The maximum target is 0x00000000FFFF0000000000000000000000000000000000000000000000000000
(which in decimal is 26959535291011309493156476344723991336010898738574164086137773096960
)
Therefore:
target = maximum target / difficulty
target = 26959535291011309493156476344723991336010898738574164086137773096960 / 1
target = 26959535291011309493156476344723991336010898738574164086137773096960
So if you convert that back to hex you get:
0xFFFF0000000000000000000000000000000000000000000000000000
Then you can just pad zeros on the left to make it 64 characters:
0x00000000FFFF0000000000000000000000000000000000000000000000000000
http://learnmeabitcoin.com/manual/guide/difficulty#finding-the-target-using-the-difficulty