Search:

Type: Posts; User: dremn2004

Search: Search took 0.18 seconds.

  1. Replies
    10
    Views
    1,972

    Re: Not sure what is wrong

    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)
  2. Replies
    10
    Views
    1,972

    Re: Not sure what is wrong

    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 []...
  3. Replies
    10
    Views
    1,972

    Re: Not sure what is wrong

    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...
  4. Replies
    10
    Views
    1,972

    Re: Not sure what is wrong

    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);
    ...
  5. Replies
    10
    Views
    1,972

    Not sure what is wrong

    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.

    ...
Results 1 to 5 of 5