// Yazzy Latif // 07/10/2020 // CSE142 // TA: Grace Hopper // Return Introduction Lecture Example // Provides a short example of using the Math class. /* DEVELOPMENT NOTES: ((Note: this is not something you should include in your own programs; this is included here to aid in your understanding and to provide additional context for the program.)) This was our introduction to returns with the Math class. In this we see an example of catching the value returned by a Math class method. */ public class ReturnIntro { public static void main(String[] args) { // information flow paramters, returns // Math class double root = Math.sqrt(121.0); // here we are doing the capture return pattern int absVal = Math.abs(-130); System.out.println("root = " + root); System.out.println("abs = " + absVal); } }