Search:

Type: Posts; User: Gerock7

Search: Search took 0.11 seconds.

  1. Replies
    23
    Views
    986

    Re: Syntax error!!!

    Sorry is just that I wanna finish this fast to start with more homework and I don't even get focused on what I'm doing.
    Ok... at the end of the code I was thinking on writing something like ...
  2. Replies
    23
    Views
    986

    Re: Syntax error!!!

    number of classes
    So it should look like
    System.out.println(total=+grades);
    Then
    System.out.println("Enter number of grades: ")
  3. Replies
    23
    Views
    986

    Re: Syntax error!!!

    calculate and print average, and gpa

    --- Update ---

    Is there anyway that you can put me a example step by step because I have 1hr to turn in the code and I don't know how to fix that
  4. Replies
    23
    Views
    986

    Re: Syntax error!!!

    Could I see an example because I don't get it, like, what should I change or where should I add something
  5. Replies
    23
    Views
    986

    Re: Syntax error!!!

    I fixed it and now I'm not getting any error but it is not working as it should be.
    I'm usign BJ and when starting the demo it jumps to the part "Enter the number of grades:"
    Then after choosing a...
  6. Replies
    23
    Views
    986

    Re: Syntax error!!!

    I have this until now but how can I do in order to name a method inside the main method like
    I have public static void main(String[]args)
    {
    public main StudentReport1 getData()
    {...
  7. Replies
    23
    Views
    986

    Re: Syntax error!!!

    I changed my code and declared
    StudentReport1 method = new StudentReport1();

    but is says "constructor StudentReport1 in class StudentReport1 cannot be applied
    to given types; required:...
  8. Replies
    23
    Views
    986

    Re: Syntax error!!!

    there's something
    possible loss of precision
    required: int; founr: double

    total=getTotal(grades);
  9. Replies
    23
    Views
    986

    Re: Syntax error!!!

    It doesn't really say error it just crash when running and Idk what I suppose to fix, idk if you could look the code of the demo. Thats where the error should be

    --- Update ---




    /**
    *...
  10. Replies
    23
    Views
    986

    Re: Syntax error!!!

    I change the variable to :
    private int numOfClasses;
    but it says illegal start of expression

    --- Update ---

    haha sorry thats was a dumb question it was because I declared the variables inside...
  11. Replies
    23
    Views
    986

    Re: Syntax error!!!

    I haven't change the double numOfClasses sorry, but the main problem is that it says error and I don't know what is wrong in my code
    I Think there must be something wrong with the getNumOfClasses...
  12. Replies
    23
    Views
    986

    Syntax error!!!

    I'm finishing this demo using get(whatever) in order to test a class



    /**
    * The ReportGenerator class uses the StudentReport1 class to simulate the report
    * of a student. Holds fields for...
Results 1 to 12 of 12