fork download
  1. public class Main {
  2. public static void main (String[] args) {
  3. System.out.println(calculoPrevisao(new double[] { 10, 5.5, 7}));
  4. }
  5. public static double calculoPrevisao(double[] valores) {
  6. double[] values = new double[valores.length];
  7. return 2.0 / (values.length + 1);
  8. }
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/252461/101
Success #stdin #stdout 0.06s 33084KB
stdin
Standard input is empty
stdout
0.5