Results 1 to 5 of 5
  1. #1
    javanew is offline Member
    Join Date
    Mar 2010
    Posts
    49
    Rep Power
    0

    Question i have a question on my assignment??(java)

    I have finished my assignment (java object oriented)it is about object and classes.. it is kinda easy..
    I want some1 to check the code for me,,, maybe you can help me to make it better,, i dont want to publish the code here,, if someone has msn, i can contact him/her and to check the errors together,...

    Another question i want to ask ,,
    I am trting to do a sort method in my main, it is sorting the objects in the array according to employeeId(integer), which is a data field.
    How can i make it ??
    I dont know to do sort at all!! anybody can teach it me the algorithm,(the bubble sort )..?:confused:

  2. #2
    gcalvin is offline Senior Member
    Join Date
    Mar 2010
    Posts
    953
    Rep Power
    5

    Default

    Post your code here. Use CODE tags and format it properly (that will give you another opportunity to read through it again yourself). We won't do your assignment for you, but we may be able to give you some pointers. Meeting you on MSN or elsewhere defeats the purpose of the forum -- we want the discussion public, where lurkers and Googlers can find it too.

    -Gary-

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

    Default

    Quote Originally Posted by javanew View Post
    I want some1 to check the code for me,,, maybe you can help me to make it better,, i dont want to publish the code here,, if someone has msn, i can contact him/her and to check the errors together,...
    That's not really what this forum is about. Rather it's about sharing problems and their solutions with all. So if you have a question about your code, then by all means, please post that code here and ask your question and you stand a good chance of getting help.

    I am trting to do a sort method in my main, it is sorting the objects in the array according to employeeId(integer), which is a data field.
    How can i make it ??
    I dont know to do sort at all!! anybody can teach it me the algorithm,(the bubble sort )..?:confused:
    Again we may have a problem here for I don't think anyone here will be able to teach you complex subjects within the confines of this or any forum. Rather we're much better at answering specific questions about any specific points of misunderstanding you may have. For this type of problem I've gotten useful help from the Wikipedia series of articles. Why not study them and then fell free to come back and ask your questions about points that aren't clear to you?

    Best of luck!

  4. #4
    collin389 is offline Senior Member
    Join Date
    Nov 2009
    Posts
    235
    Rep Power
    6

    Default

    There is this cool thing called Wikipedia that will explain what a bubble sort algorithm is, and give you pseudocode for it. I'd give you the link, but I think you can find it.

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

    Default

    Quote Originally Posted by collin389 View Post
    There is this cool thing called Wikipedia that will explain what a bubble sort algorithm is...
    Great idea, wish I'd thought of it! ;)

Similar Threads

  1. Java syntax I don't understand - assignment
    By poet in forum New To Java
    Replies: 2
    Last Post: 09-19-2009, 07:47 AM
  2. Question about school assignment
    By wata in forum New To Java
    Replies: 7
    Last Post: 08-18-2009, 03:00 PM
  3. Java assignment
    By xtianah77 in forum New To Java
    Replies: 1
    Last Post: 02-18-2008, 12:54 AM
  4. java assignment, need help bad.
    By carlos123 in forum New To Java
    Replies: 1
    Last Post: 11-06-2007, 05:53 PM
  5. Help with my assignment java
    By toby in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 06:59 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
  •