Click here to Skip to main content
15,914,795 members
Home / Discussions / Java
   

Java

 
GeneralRe: Webpage saver -- help Pin
cubocik14-Jan-13 6:34
cubocik14-Jan-13 6:34 
GeneralRe: Webpage saver -- help Pin
cubocik14-Jan-13 6:39
cubocik14-Jan-13 6:39 
GeneralRe: Webpage saver -- help Pin
Richard MacCutchan14-Jan-13 6:55
mveRichard MacCutchan14-Jan-13 6:55 
GeneralRe: Webpage saver -- help Pin
cubocik14-Jan-13 7:55
cubocik14-Jan-13 7:55 
GeneralRe: Webpage saver -- help Pin
Richard MacCutchan14-Jan-13 22:02
mveRichard MacCutchan14-Jan-13 22:02 
GeneralRe: Webpage saver -- help Pin
cubocik16-Jan-13 0:38
cubocik16-Jan-13 0:38 
GeneralRe: Webpage saver -- help Pin
Richard MacCutchan16-Jan-13 0:51
mveRichard MacCutchan16-Jan-13 0:51 
QuestionHow to Record Audio at client Side? Pin
Mrugrajsinh13-Jan-13 7:19
Mrugrajsinh13-Jan-13 7:19 
Questioncode error Pin
Member 975139812-Jan-13 12:47
Member 975139812-Jan-13 12:47 
AnswerRe: code error Pin
Richard MacCutchan12-Jan-13 23:35
mveRichard MacCutchan12-Jan-13 23:35 
QuestionRegarding Maven and Jenkins Pin
Nanijoga2-Jan-13 22:47
Nanijoga2-Jan-13 22:47 
AnswerRe: Regarding Maven and Jenkins Pin
Richard MacCutchan3-Jan-13 0:12
mveRichard MacCutchan3-Jan-13 0:12 
GeneralRe: Regarding Maven and Jenkins Pin
Nanijoga3-Jan-13 0:23
Nanijoga3-Jan-13 0:23 
GeneralRe: Regarding Maven and Jenkins Pin
Richard MacCutchan3-Jan-13 1:06
mveRichard MacCutchan3-Jan-13 1:06 
GeneralRe: Regarding Maven and Jenkins Pin
Nanijoga3-Jan-13 1:13
Nanijoga3-Jan-13 1:13 
GeneralRe: Regarding Maven and Jenkins Pin
Richard MacCutchan3-Jan-13 1:58
mveRichard MacCutchan3-Jan-13 1:58 
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 

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.