
-----------------------------------
Magic Man
Sun Jun 10, 2007 9:26 am

Messed up output
-----------------------------------
Output is messed up: 
		int 

Can anyone tell me what the problem is?

-----------------------------------
Ultrahex
Sun Jun 10, 2007 9:53 am

Re: Messed up output
-----------------------------------
you are printing out the reference pointer to the array, by doing:

System.out.println (ovrallavg);

you are saying print out the reference pointer of the array. which it is doing!

-----------------------------------
Magic Man
Sun Jun 10, 2007 10:09 am

Re: Messed up output
-----------------------------------
Well i am supposed to print the average fro lowest to highest but i cant seem to figure out how to. here is the entire program.
import java.util.Scanner;
import java.io.*;
import java.util.Arrays;
import java.text.DecimalFormat;

public class Java58 {

/**
 * 
 */
/**
 * @author 
 *
 */
public static void main(String

-----------------------------------
Clayton
Sun Jun 10, 2007 10:22 am

RE:Messed up output
-----------------------------------
I imagine you'd want to actually output the element of the array you just figured out the average for...


for ( int i = 0; i < 10; i++ ) {
    ovrallavg 

-----------------------------------
Magic Man
Sun Jun 10, 2007 10:58 am

Re: Messed up output
-----------------------------------
Still does not seem to work:
	
case 4:
	int 

-----------------------------------
Magic Man
Sun Jun 10, 2007 11:36 am

Re: Messed up output
-----------------------------------
nevermind i got it. thanks to all
