Hey guys!

I need help translating an old C program into a Java program. I've done most of it using basic message boxes, but the thing is, I can't figure out how to make the Java equivalent of user-defined functions in C properly. Can you guys give me an example?

Thanks!