Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Java 2
This is the forum to discuss the Wrox book Beginning Java 2, SDK 1.4 Edition by Ivor Horton; ISBN: 9780764543654
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Java 2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 14th, 2003, 06:39 PM
Authorized User
 
Join Date: Aug 2003
Location: Lima, Ohio, USA.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to endamist Send a message via Yahoo to endamist
Default no spaces in output for example of MorePrimes!?

For the SDK 1.4 edition of the book page 128, the example MorePrimes produces an output of prime numbers. However, the output has no spacing to distinguish between one prime number and the next, giving you a single string of numbers and no spaces.:(

Is there a better way to write this program example that would produce legiable output without losing the purpose of the example code?

thanks,
Endamist

  #2 (permalink)  
Old August 14th, 2003, 06:57 PM
Authorized User
 
Join Date: Aug 2003
Location: Lima, Ohio, USA.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to endamist Send a message via Yahoo to endamist
Default

never mind. I made a mistake and typed print instead of println on my output statement. it printed everthing on one line rather than on a seprate line for each. Go figure.

Endamist

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spaces XP Programmer911 General .NET 1 December 19th, 2007 07:03 AM
Removing spaces Dave Brown Beginning PHP 2 October 28th, 2005 12:02 PM
Frame Spaces EvilGuyWhoEatsBrains HTML Code Clinic 2 January 5th, 2005 12:24 PM
spaces problem mateenmohd SQL Server 2000 8 August 11th, 2003 06:27 PM



All times are GMT -4. The time now is 04:39 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.