Results 1 to 7 of 7
  1. #1
    yuval is offline Member
    Join Date
    Apr 2013
    Posts
    5
    Rep Power
    0

    Default problem with compilation

    hi everyone
    I wrote a code the get the 3 numbers : day of flight, hours , and minutes. After that it get the duration time with hours and minutes the program need to calculate when it will land: day ,hours and minutes.
    I did it and I wrote in the code this line: sum_minutes%=6o; the compiler marked that line and the comment was :';' is expected
    what is the problem?

  2. #2
    monkeyjr97 is offline Senior Member
    Join Date
    Nov 2012
    Posts
    258
    Rep Power
    2

    Default Re: problem with compilation

    i think the % is causing the error. remove that and re try.

    or you could change it to sum_minutes_percentage = 60;

    im not 100% sure but i think the "%" is an operator used in java.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,337
    Blog Entries
    7
    Rep Power
    20

    Default Re: problem with compilation

    By itself the '%=' operator (modulo assign) is perfectl legal; can you show us some more code?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    yuval is offline Member
    Join Date
    Apr 2013
    Posts
    5
    Rep Power
    0

    Default Re: problem with compilation

    Quote Originally Posted by JosAH View Post
    By itself the '%=' operator (modulo assign) is perfectl legal; can you show us some more code?

    kind regards,

    Jos
    I can send the file in a zip

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,337
    Blog Entries
    7
    Rep Power
    20

    Default Re: problem with compilation

    Quote Originally Posted by yuval View Post
    I can send the file in a zip
    Don't; show a bit of relevant code here in this forum.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  6. #6
    yuval is offline Member
    Join Date
    Apr 2013
    Posts
    5
    Rep Power
    0

    Default Re: problem with compilation

    Quote Originally Posted by JosAH View Post
    Don't; show a bit of relevant code here in this forum.

    kind regards,

    Jos
    Some friends helped me if I will have more problem I will know that I can get help here/

  7. #7
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,337
    Blog Entries
    7
    Rep Power
    20

    Default Re: problem with compilation

    Quote Originally Posted by yuval View Post
    Some friends helped me if I will have more problem I will know that I can get help here/
    It would be nice if you told us what the problem was and how you solved it (for future readers who hit this page through Google).

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. program compilation problem
    By mamoonrizwan in forum New To Java
    Replies: 1
    Last Post: 10-17-2011, 08:35 PM
  2. Unresolved compilation problem
    By ls7897 in forum New To Java
    Replies: 9
    Last Post: 03-09-2011, 01:42 AM
  3. Compilation Problem
    By whosadork in forum New To Java
    Replies: 6
    Last Post: 09-10-2008, 02:50 AM
  4. Unresolved compilation problem
    By mew in forum New To Java
    Replies: 2
    Last Post: 12-30-2007, 07:17 PM
  5. Unresolved compilation problem
    By mew in forum New To Java
    Replies: 3
    Last Post: 12-11-2007, 11:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •