thomas
Posts: 42
Nickname: turbomanic
Registered: Jul, 2002
|
|
Re: code for Full Name
|
Posted: Aug 26, 2002 10:15 AM
|
|
> Hello, i have a class "Person" with the attributes: > > firstname - a String first name > surname - a String surname > > But i need to know how to write a method for > fullname; which returns a string containing firstname > and surname separated by a space. > > Its probably really simple, but i dont know how to? > any suggestions?
roob you must start reading your text book if you want to be successful in java. This is simply using the string class which all text books covers.
|
|