Its easy, you can make a variable of the main class in the other wher its calculated with



public static Main main = new Main();


With this you can use the main for alot of things....