Hello everybody
I'm working on a project and I have a question.
I'm using a UDP connection to send messages between the client and the server.
Using a DatagramPacket, I have to send a string (sendData). I'm using:

DatagramPacket sendPacket = new DatagramPacket(sendData, sendData.length, IPAddress, 9876);

So far so good. The problem is that the professor wants us to send, at the same time a "fake checksum", in this case it would be an int.
Since the DatagramPacket class is final, it can't be extended to add thee new parameter I want to add.
Here is my question:
How can I send that int value if the class has defined parameters?

Thank you in advance