aspose file tools
The moose likes Beginning Java and the fly likes Very simple question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Very simple question" Watch "Very simple question" New topic
Author

Very simple question

Vlada Den
Ranch Hand

Joined: Dec 19, 2004
Posts: 32
Hi!

How can I change this line, so "only tabs would separate the values in toString()", as teacher wrote to me:

public String toString() {
return("UserID: " + userID +
"\t Name: " + name +
"\t TelephoneNo: " + telephoneNo);
}
}

Thanks a lot in advance,

Vlada
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
Do you mean changing "\t Name: " to "\tName: " or "\tName:"?


Mike Gershman
SCJP 1.4, SCWCD in process
 
I agree. Here's the link: jrebel
 
subject: Very simple question
 
Similar Threads
Problem With Execute and Wait Interceptor
Session Variables
Database checkup
StringBuffer Question
Grading Program--Need help, please!!!