answersLogoWhite

0

// numbers to work with

double[] nums = {1, 2, 3, 4.5, 5.5, 6, 7.5, 8, 9, 10};

double sum = 0;

// total sum

for (int i = 0; i < nums.length; ++i) {

sum += nums[i];

}

// final average

final double mean = (sum / nums.length);

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Write a c program Fibonacci series using for loop in java?

Exactly what do you mean by 'C program in Java'


What do you mean by multithread program in java?

A Program in Java that spawns multiple threads is called a multithreaded program in Java.


How do you write program in java?

You can write it with Windows NotePad, although using an IDE such as NetBeans or Eclipse is recommended. If you mean you want to learn Java, take a look at the tutorials at the Oracle site.


What does it mean to generate random numbers in Java?

Generating random numbers in Java is somewhat of a misnomer because the numbers are actually semi-random.It means to use the program to obtain random integers to use in hypothetical situations such as statistics.


Who make Java Program?

Many people make Java programs, but if you mean who invented the Java programming language it was James Gosling of Sun Microsystems.


How do you use java technology?

it depends on what you mean... if you want to program it id then suggest you started with a program called robocode it teaches to learn java. other wise if your trying to access a program then do a system search.


If your java program says no compiler is available what does that mean?

It means you have not installed jdk and jre in your machine...


What does escriban los numeros mean?

Write the numbers


What does write the next ten numbers mean?

It means write the next ten numbers that come after this.


What mean by multithreaded program?

A multithreaded program is one that has multiple threads in execution. They may execute parallel to one another or totally without relation to one another. In Java you can create multithreaded programs using Java threads.


How can you write a program to find the mean resistance in c language given the values of 8 resistances?

"Mean" usually means "average", so you just add the numbers together, then divide by 8.


What does escriben los numeros mean?

It mens write the the numbers. Escribir means to write and los numeros are numbers.