Here you can find the source of average(double x, double y)
Parameter | Description |
---|---|
x | a parameter |
y | a parameter |
public static double average(double x, double y)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from ww w. j av a2 s . c om*/ * Average two numbers * @param x * @param y * @return the average of x and y */ public static double average(double x, double y) { return (x + y) / 2; } }