7 Replies - 395 Views - Last Post: 26 August 2009 - 07:25 PM Rate Topic: -----

#1 umar602  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 26-August 09

daamn this code it dsnt work with me

Posted 26 August 2009 - 09:28 AM

abstract class SortAlgorithm {

 int size; int array[];

 public void exchange (int i, int j) {}
 public int compare (int i, int j) {}
 public int compare_val (int val, int i) {}
 public void assign (int ndx, int val) {}
 public int item (int i) {}
 public void delay(float f) {}
abstract void sort ();

};


i wanna use this code in sorting 100 items ..but it sames that i have to use certain type of algorithm on it....
any 1 can give just hint about it...thnx guyzz

Is This A Good Question/Topic? 0
  • +

Replies To: daamn this code it dsnt work with me

#2 NeoTifa  Icon User is online

  • Whorediot
  • member icon





Reputation: 2582
  • View blog
  • Posts: 15,605
  • Joined: 24-September 08

Re: daamn this code it dsnt work with me

Posted 26 August 2009 - 09:35 AM

I did not understand a single word you just said.
Was This Post Helpful? 0
  • +
  • -

#3 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10364
  • View blog
  • Posts: 38,383
  • Joined: 27-December 08

Re: daamn this code it dsnt work with me

Posted 26 August 2009 - 10:44 AM

Actually, your code works the way it is, just not the way you want it to. It is an abstract class & your methods don't do anything. Next, what sorting algorithm are you supposed to use. For examples, look in the Java snippets. In the future, please remember to describe your problem and be specific. If we don't know where you are and where you need to be, we can't get you there. Thanks for helping us help you.

Edit: By the way, nice title

This post has been edited by macosxnerd101: 26 August 2009 - 10:45 AM

Was This Post Helpful? 0
  • +
  • -

#4 Guest_Neumann*


Reputation:

Re: daamn this code it dsnt work with me

Posted 26 August 2009 - 11:35 AM

I wouldn't want to work with you as well.

This post has been edited by Neumann: 26 August 2009 - 11:38 AM

Was This Post Helpful? 0

#5 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8324
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: daamn this code it dsnt work with me

Posted 26 August 2009 - 05:38 PM

From where did you cut & pasted that code ?

Don't tell us you wrote it :D
Was This Post Helpful? 0
  • +
  • -

#6 mostyfriedman  Icon User is offline

  • The Algorithmi
  • member icon

Reputation: 727
  • View blog
  • Posts: 4,473
  • Joined: 24-October 08

Re: daamn this code it dsnt work with me

Posted 26 August 2009 - 05:54 PM

damn pbl, thanked 803 times..that's A LOT
Was This Post Helpful? 0
  • +
  • -

#7 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8324
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: daamn this code it dsnt work with me

Posted 26 August 2009 - 06:30 PM

View Postmostyfriedman, on 26 Aug, 2009 - 04:54 PM, said:

damn pbl, thanked 803 times..that's A LOT

LOL :D

And this is because you are rarely thanked for

[rules][/rules]
:)

or "duplicated topics merged"

or Google is your best friend

:)
Was This Post Helpful? 0
  • +
  • -

#8 mostyfriedman  Icon User is offline

  • The Algorithmi
  • member icon

Reputation: 727
  • View blog
  • Posts: 4,473
  • Joined: 24-October 08

Re: daamn this code it dsnt work with me

Posted 26 August 2009 - 07:25 PM

haha :D
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1