Click here to Skip to main content
15,889,462 members
Home / Discussions / Java
   

Java

 
GeneralRe: Regarding Maven and Jenkins Pin
Nanijoga3-Jan-13 2:16
Nanijoga3-Jan-13 2:16 
AnswerRe: Regarding Maven and Jenkins Pin
April Fans3-Jan-13 15:39
April Fans3-Jan-13 15:39 
Questionjava TLS Sending Email Pin
renishkhunt2-Jan-13 18:52
renishkhunt2-Jan-13 18:52 
AnswerRe: java TLS Sending Email Pin
WebMaster2-Jan-13 22:08
WebMaster2-Jan-13 22:08 
GeneralRe: java TLS Sending Email Pin
renishkhunt2-Jan-13 23:26
renishkhunt2-Jan-13 23:26 
GeneralRe: java TLS Sending Email Pin
WebMaster3-Jan-13 0:12
WebMaster3-Jan-13 0:12 
GeneralRe: java TLS Sending Email Pin
WebMaster3-Jan-13 20:09
WebMaster3-Jan-13 20:09 
QuestionGeneric BST helpp!! Pin
WebMaster2-Jan-13 4:23
WebMaster2-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 :

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

   public int getseqNo()
   {
       return seqNo;
   }


The insert method in the BST class is the following:

Java
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
rkpandey201331-Dec-12 0:20 
AnswerRe: JSF Pin
Richard MacCutchan31-Dec-12 0:54
mveRichard MacCutchan31-Dec-12 0:54 
AnswerRe: JSF Pin
Richard MacCutchan7-Jan-13 6:31
mveRichard MacCutchan7-Jan-13 6:31 
QuestionJSF with Tiles Pin
gurpreetsingh201531-Dec-12 0:12
gurpreetsingh201531-Dec-12 0:12 
AnswerRe: JSF with Tiles Pin
rkpandey201331-Dec-12 0:21
rkpandey201331-Dec-12 0:21 
AnswerRe: JSF with Tiles Pin
Richard MacCutchan31-Dec-12 0:54
mveRichard MacCutchan31-Dec-12 0:54 
QuestionAnnotation Pin
Vijay Kumar Jaiswal30-Dec-12 18:20
Vijay Kumar Jaiswal30-Dec-12 18:20 
AnswerRe: Annotation Pin
TorstenH.30-Dec-12 21:35
TorstenH.30-Dec-12 21:35 
AnswerRe: Annotation Pin
WebMaster2-Jan-13 22:14
WebMaster2-Jan-13 22:14 
AnswerRe: Annotation Pin
April Fans3-Jan-13 15:44
April Fans3-Jan-13 15:44 
AnswerRe: Annotation Pin
muthu shankar7-Jan-13 4:30
muthu shankar7-Jan-13 4:30 
AnswerRe: Annotation Pin
April Fans16-Jan-13 21:58
April Fans16-Jan-13 21:58 
QuestionCan some one port this java code to c#? Pin
Danish Samil25-Dec-12 23:28
Danish Samil25-Dec-12 23:28 
AnswerRe: Can some one port this java code to c#? Pin
TorstenH.27-Dec-12 23:56
TorstenH.27-Dec-12 23:56 
GeneralRe: Can some one port this java code to c#? Pin
Danish Samil30-Dec-12 22:46
Danish Samil30-Dec-12 22:46 
Questionwhy I have to use Pin
demo 225-Dec-12 17:47
demo 225-Dec-12 17:47 
AnswerRe: why I have to use Pin
Richard MacCutchan25-Dec-12 21:29
mveRichard MacCutchan25-Dec-12 21:29 

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

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