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)
Type: Posts; User: dremn2004
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.
...