[Bluej-discuss] syntax of method calling
chen li
chen_li3 at yahoo.com
Sat Jul 8 22:41:48 BST 2006
Dear Dr. Barton,
Thank you very much for the help.
Now I have another program. I have two classes:
public class SeqReader3// (class 1)
{
private String seq;
public SeqReader3()
{
seq="aatt ccGG";
}
public String do_lowerCase()
{
seq=seq.replace(" ","");//clean up sequence
seq=seq.toLowerCase();
return seq;
}
}
and
public class Reverse //class 2
{
private String revSeq;
public Reverse()
{
}
public String revSeq()
{
revSeq=new
StringBuilder(revSeq).reverse().toString().toUpperCase();
return revSeq;
}
}
What I am trying to do is that 1) I use class 1 to
process the sequence; 2) then I want to pass the
result from class 1 into class 2 so that I can do
whatever I want. But I can't figure out how to pass
the result from class 1 into to class 2.
Any help will be appreciate.
Li
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the bluej-discuss
mailing list