Results 21 to 26 of 26
Thread: Creating a word wrap
- 10-29-2010, 07:15 AM #21
Member
- Join Date
- Oct 2010
- Posts
- 15
- Rep Power
- 0
- 10-29-2010, 07:15 AM #22
Member
- Join Date
- Oct 2010
- Posts
- 15
- Rep Power
- 0
so i'm guessing I need to add to that because at this point it is just a blank output.
- 10-29-2010, 07:16 AM #23
Outside of the "if" statement you need to print out the current character at index position 'i'.
Sincerely, Joshua Green
Please REP if I help :)
- 10-31-2010, 09:17 PM #24
Member
- Join Date
- Oct 2010
- Posts
- 15
- Rep Power
- 0
ok so I did that.
here is my code now.
Java Code:for(int i = 0; i < length; i++) { if( (i % 60) == 0 ){ } char wordBreak = temp.charAt(i); System.out.print(wordBreak); }
- 11-01-2010, 12:40 AM #25
- 11-01-2010, 01:03 AM #26
Member
- Join Date
- Oct 2010
- Posts
- 15
- Rep Power
- 0
Similar Threads
-
I'm having a problem trying wrap up this code
By feastfulsaint in forum Advanced JavaReplies: 12Last Post: 07-17-2010, 07:27 PM -
creating word writer
By Anchal in forum AWT / SwingReplies: 3Last Post: 04-06-2010, 09:00 AM -
JTextArea Wrap Around or something?
By Krooger in forum New To JavaReplies: 6Last Post: 11-28-2009, 04:29 AM -
Word Wrap not functioning correctly?
By zerkz in forum New To JavaReplies: 2Last Post: 10-08-2009, 06:41 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks