/............./
Printable View
/............./
Please edit your posted code and add code tags. See: BB Code List - Java Forums
sorry about that.
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.
You should look at what you post. This is almost the same as before.
.................
Sorry man I can't do this, or well, guess no add method for me. Thanks anyway Norm.
That's better.
Most of us write code like this:
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;
}
Norm, is this better, now can you help me out on the add method, thanks.
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
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.