Results 1 to 4 of 4
- 04-06-2010, 01:06 AM #1
Member
- Join Date
- Feb 2010
- Posts
- 6
- Rep Power
- 0
Formatting output somewhat like a table
How do you make your program display like this. with a variable number that gets updated in a loop
orJava Code:1 2 3 4 5 6 7 8
or likeJava Code:1 2 3 4 5 6 7 8 9 10
and can you do this without a specific method?Java Code:Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 while (num<=month) { System.out.print(num) }Last edited by Fubarable; 04-06-2010 at 02:08 AM. Reason: to be more specific
- 04-06-2010, 01:07 AM #2
Member
- Join Date
- Feb 2010
- Posts
- 6
- Rep Power
- 0
it just moved my numbers out of format on the calender...sorry but i think you get what im saying
-
You could look into using System.out.printf("... ", ....)
- 04-06-2010, 06:44 AM #4
Similar Threads
-
Formatting this output to show "#.##"
By twiggy62 in forum New To JavaReplies: 9Last Post: 02-06-2010, 05:40 PM -
How to repaint.refresh the table (table model) with combo box selection envent
By man4ish in forum AWT / SwingReplies: 1Last Post: 01-08-2010, 06:19 AM -
Need help formatting File Output
By aaroncarpet in forum New To JavaReplies: 2Last Post: 11-26-2009, 05:26 PM -
Need help formatting output and some code
By A5i19 in forum New To JavaReplies: 6Last Post: 11-09-2009, 04:58 AM -
Data formatting for the <display:table>
By yuchuang in forum Web FrameworksReplies: 3Last Post: 12-14-2007, 10:52 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks