/**
 *
 * @author Damien Bell <SkyeShatter@gmail.com>
 */

//////////////////////////////////////////////////////////////////
/////////////////////Jtutorial1.java//////////////////////////////
//////////////////////////////////////////////////////////////////
import java.util.Scanner;
 class Jtutorial1 {
    public static void main(String args[]){ 
       Scanner input = new Scanner(System.in);
       
       int x =0 , y=0;
       
       System.out.println("Enter a value for the first number: ");
       x = input.nextInt();
       System.out.println("Enter a value for the first number: ");
       y = input.nextInt();
       
       int sum;
       sum = Prodsum.sum(x,y);
       
       System.out.println("And the sum of the numbers is: "+ sum);
    } //End main
} //End class


//////////////////////////////////////////////////////////////////
/////////////////////Prodsum.java/////////////////////////////////
//////////////////////////////////////////////////////////////////




/**
 *
 * @author Damien Bell <SkyeShatter@gmail.com>
 */

public class Prodsum {
    
private static int prodSum(int x, int y){
    int sum;
    
    System.out.println("The product is: " + (x*y));
    sum= x+y;
    
    return sum;
}//End prodSum

public static int sum(int x, int y){
    int sum=0;
    sum = prodSum(x,y);

    return sum;
}
    
}//end class
