Results 1 to 12 of 12
  1. #1
    NoobOfJava is offline Member
    Join Date
    Jun 2011
    Posts
    11
    Rep Power
    0

    Default Quick Help on My Program

    /............./
    Last edited by NoobOfJava; 06-03-2011 at 06:17 AM.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,874
    Rep Power
    25

    Default

    Please edit your posted code and add code tags. See: BB Code List - Java Forums

  3. #3
    NoobOfJava is offline Member
    Join Date
    Jun 2011
    Posts
    11
    Rep Power
    0

    Default

    sorry about that.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,874
    Rep Power
    25

    Default

    Do you really NOT indent your code. The indentation should follow the nesting level associated with { } pairs.
    Your code is very hard to read and follow the logic with every line left adjusted.

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,874
    Rep Power
    25

    Default

    You should look at what you post. This is almost the same as before.

  6. #6
    NoobOfJava is offline Member
    Join Date
    Jun 2011
    Posts
    11
    Rep Power
    0

    Default

    .................
    Last edited by NoobOfJava; 06-03-2011 at 06:09 AM.

  7. #7
    NoobOfJava is offline Member
    Join Date
    Jun 2011
    Posts
    11
    Rep Power
    0

    Default

    Sorry man I can't do this, or well, guess no add method for me. Thanks anyway Norm.

  8. #8
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,874
    Rep Power
    25

    Default

    That's better.
    Most of us write code like this:
    Java Code:
    public Pair(Object o, Comparable c, String goals, String assists, String gamesPlayed)
    {
       object = o;   // Code inside {} is indented
       comparable = c;
       this.goals=goals;
       this.assists=assists;
       this.gamesPlayed=gamesPlayed;
    }

  9. #9
    NoobOfJava is offline Member
    Join Date
    Jun 2011
    Posts
    11
    Rep Power
    0

    Default

    Norm, is this better, now can you help me out on the add method, thanks.

  10. #10
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default

    Forums are for sharing problems and their possible solutions. By editing and removing the content of your posts, you have rendered this thread useless.

    Any repeat of such behavior will lead to your account being closed.

    db

  11. #11
    NoobOfJava is offline Member
    Join Date
    Jun 2011
    Posts
    11
    Rep Power
    0

    Default

    Sorry, Darryl, I deleted my code, because it was for a summative project and I did not want my classmates to search and copy my coding. Sorry again. Will not happen again.

  12. #12
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by NoobOfJava View Post
    Sorry, Darryl, I deleted my code, because it was for a summative project and I did not want my classmates to search and copy my coding. Sorry again. Will not happen again.
    Trust me, no one will steal your code. Thank you for agreeing not to do this again.

Similar Threads

  1. Need quick help with a Java blackjack program!
    By Enigma in forum New To Java
    Replies: 11
    Last Post: 06-01-2011, 10:59 AM
  2. Should be a quick fix :)
    By Alienz in forum New To Java
    Replies: 5
    Last Post: 04-08-2011, 02:23 AM
  3. quick q&a
    By aizen92 in forum New To Java
    Replies: 2
    Last Post: 12-28-2010, 12:55 PM
  4. Replies: 5
    Last Post: 11-27-2010, 01:28 AM
  5. Require quick program revision please
    By SF163 in forum New To Java
    Replies: 2
    Last Post: 11-07-2009, 01:04 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
  •