Can anyone help me... I can't get my head round this!

I have two seperate java files... and

I want to pass three seperate integer values from the second java file to the first java file. Then once I have them in the first java file I can use them as variables to plot graphs.

Can anyone post some idiot proof sample code of how to do this??