0

I'm trying to build object that contaions list (Node) of the object priority (private int prio, private String data). the list nust be sorted (the lowest priority at the start, the highest at the end). I'm working with java-eclipse. my insert method doesn't work and I dont know why. I would be glad if somone can show me how this method should be done. I need to do the same thing with array of priority, but I assume that this is the same idea.
Thank you very nuch.

Manfred Radlwimmer
  • 13,257
  • 13
  • 53
  • 62
omere
  • 1
  • 1

0 Answers0