Click here to Skip to main content
11,721,289 members (83,523 online)
   

Java

 
GeneralRe: Regarding Maven and Jenkins Pin
sivaKrishna joga3-Jan-13 2:16
membersivaKrishna joga3-Jan-13 2:16 
AnswerRe: Regarding Maven and Jenkins Pin
April Fans3-Jan-13 15:39
memberApril Fans3-Jan-13 15:39 
Questionjava TLS Sending Email Pin
renishkhunt2-Jan-13 18:52
memberrenishkhunt2-Jan-13 18:52 
AnswerRe: java TLS Sending Email Pin
Phat (Phillip) H. VU2-Jan-13 22:08
memberPhat (Phillip) H. VU2-Jan-13 22:08 
GeneralRe: java TLS Sending Email Pin
renishkhunt2-Jan-13 23:26
memberrenishkhunt2-Jan-13 23:26 
GeneralRe: java TLS Sending Email Pin
Phat (Phillip) H. VU3-Jan-13 0:12
memberPhat (Phillip) H. VU3-Jan-13 0:12 
GeneralRe: java TLS Sending Email Pin
Phat (Phillip) H. VU3-Jan-13 20:09
memberPhat (Phillip) H. VU3-Jan-13 20:09 
QuestionGeneric BST helpp!! Pin
yanikaA2-Jan-13 4:23
memberyanikaA2-Jan-13 4:23 
Hi all !! Happy New Year!!

I am currently working on a Generic Binary Search Tree. The insertion is done according to a variable - int seqNo and the get and set methods for seqNo are in a class called AnyClass (which is in a package named dataobjects).
Now, when I am calling the getseqNo() method in the BST class, it seems that it cannot be found.
I also have a class named Node that creates the nodes for the BST.

What is wrong with my code??

get & set Methods for seqNo is :

public void setseqNo(int SeqNo)
   {
       seqNo = SeqNo;
   }
 
   public int getseqNo()
   {
       return seqNo;
   }

The insert method in the BST class is the following:

protected Node <E> insert (Node root,Node newNode)
  {
      if (root == null)
         root = newNode; 
      else
      {
        if((newNode.obj.getseqNo())<(root.obj.getseqNo())) // if first is less than second
            root.left = insert(root.left,newNode);
        else
            root.right = insert(root.right, newNode);    
      } 
      return root; 
  } 
    
  public void insertBST (E newObj)
  {
      Node temp = new Node (newObj);
      root = insert (root,temp);
  }

QuestionJSF Pin
rkpandey201331-Dec-12 0:20
memberrkpandey201331-Dec-12 0:20 
AnswerRe: JSF Pin
Richard MacCutchan31-Dec-12 0:54
mvpRichard MacCutchan31-Dec-12 0:54 
AnswerRe: JSF Pin
Richard MacCutchan7-Jan-13 6:31
mvpRichard MacCutchan7-Jan-13 6:31 
QuestionJSF with Tiles Pin
gurpreetsingh201531-Dec-12 0:12
membergurpreetsingh201531-Dec-12 0:12 
AnswerRe: JSF with Tiles Pin
rkpandey201331-Dec-12 0:21
memberrkpandey201331-Dec-12 0:21 
AnswerRe: JSF with Tiles Pin
Richard MacCutchan31-Dec-12 0:54
mvpRichard MacCutchan31-Dec-12 0:54 
QuestionAnnotation Pin
Vijay Kumar Jaiswal30-Dec-12 18:20
groupVijay Kumar Jaiswal30-Dec-12 18:20 
AnswerRe: Annotation Pin
TorstenH.30-Dec-12 21:35
memberTorstenH.30-Dec-12 21:35 
AnswerRe: Annotation Pin
Phat (Phillip) H. VU2-Jan-13 22:14
memberPhat (Phillip) H. VU2-Jan-13 22:14 
AnswerRe: Annotation Pin
April Fans3-Jan-13 15:44
memberApril Fans3-Jan-13 15:44 
AnswerRe: Annotation Pin
muthu shankar7-Jan-13 4:30
membermuthu shankar7-Jan-13 4:30 
AnswerRe: Annotation Pin
April Fans16-Jan-13 21:58
memberApril Fans16-Jan-13 21:58 
QuestionCan some one port this java code to c#? Pin
Danish Samil25-Dec-12 23:28
memberDanish Samil25-Dec-12 23:28 
AnswerRe: Can some one port this java code to c#? Pin
TorstenH.27-Dec-12 23:56
memberTorstenH.27-Dec-12 23:56 
GeneralRe: Can some one port this java code to c#? Pin
Danish Samil30-Dec-12 22:46
memberDanish Samil30-Dec-12 22:46 
Questionwhy I have to use Pin
demo 225-Dec-12 17:47
memberdemo 225-Dec-12 17:47 
AnswerRe: why I have to use Pin
Richard MacCutchan25-Dec-12 21:29
mvpRichard MacCutchan25-Dec-12 21:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150901.1 | Last Updated 3 Sep 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid