Sounds like a weird assignment, a delay line being such a basic thing compared to a reverb effect – although you could argue that a reverb may be just a bunch of delay lines.
Anyway, you don’t – need – Java to do that. Just check tapin~/tapout~, and, why not, yafr in the Max factory examples.
I already know about using the tapin~ or yafr object already but unfortunately the assignment has to be done using java. I have decided I want to make a delay unit but i have no idea where to begine or what to do!