Java Tutorial #16 — Introduction to methods

Topics Discussed: Methods, passing by value, method arguments, return types, void Source Code for Lesson 16: /** * * @author Damien Bell <> */ import java.util.Scanner; class Jtutorial1 { public static int prodSum(int x, int y){ int z=0; System.out.println("The product is: " +(x*y)); // produdct of our numbers z= x+y; return z; } public static... » read more