Since you want to variable to go to a different class, the first thing you will need to do is create an instance of that class in your main method.
SendEmail foo = new SendEmail();
Now that you have your object, you can call any public methods from that class. To get a variable that exists in the main class to your SendEmail class, all you have to do is pass it. Take a look at the signature of the only method you have in the sendEmail class. See all the Strings in ()'s after the method name? Those are variables that are going to be passed to the method. So let's say that you want to send prodTest to a method called testProd().
- Since you are passing a String, the method signature has to show that the method accepts a String.
public **return type here** testProd(String input){}
Now you just call that method from main.