Thank you, I don't know why I did not catch that. I declared min at same time as max, and it compiles. I run it and it works, until it is supposed to give me the min and max and they come up as 0....
Type: Posts; User: dremn2004
Thank you, I don't know why I did not catch that. I declared min at same time as max, and it compiles. I run it and it works, until it is supposed to give me the min and max and they come up as 0....
I have a program I am trying to write and I can not figure it out. I have to create a multi dimensional array and find the max and min values of the arrays. Here is my code;
import...
Sorry, I did not realize I had not copied the import and class info....
import java.util.Scanner;
public class Assign7_1_Key {
public static void main (String [] args)
That is what I have been doing, but I think the sinus headache I awoke with this morning is taking over my thought process...lol.
Here is my current code:
public static void main (String []...
OK, seems it seems I did have it closed into a pair of {}, I removed them and it comiles successfully now, however it is not running properly.
This is the results I should get..
*Enter a number...
This is the error I get when I compile.
cannot find symbol
symbol : variable average
location: class Assign7_1_Key
System.out.println("Average of the numbers is " + average);
...
Ok, I am trying to set this program up using a for loop. I do not know if I am just to tired to find what is wrong, or if I am way off base, but my program is not compiling. Here is my code.
...