Results 1 to 2 of 2
- 04-28-2010, 01:13 PM #1
Member
- Join Date
- Feb 2010
- Posts
- 26
- Rep Power
- 0
Formatting String data from database
Hello everyone,
I have been searching for days with no help on how to format my data that I have retrieved from one of my tables. Here is the statement I am using:
Java Code:System.out.format( "| " + prodNum + " \t"+ prodBrand + " " + " \t"+ prodModel + " \t" + " \t"+ modelNum + " \t" + " \t"+ prodID + " |\n");
And this is how it comes out:
Java Code:Product Table ------------- | 1 Dell Inspiron 1 L342DP | | 2 Apple NetBook 1 LM42RX | | 3 IBM ProSeriesII 3 S342TB | | 4 HP touch 3 P545TB | | 5 Acer ProDesk 3 D300RC |
Now, my question is how do I format all the data without using a gui?
I could really use some help on this because I am having no luck. If anything point me in the right direction.
- 04-28-2010, 01:27 PM #2
You got a reply already, which you have ignored:
String and number formatting
And this is not a Database question, it doesn't matter where the Strings come from.Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
Similar Threads
-
String and number formatting
By computerbum in forum New To JavaReplies: 1Last Post: 04-27-2010, 05:06 PM -
Formatting String
By ersachinjain in forum Advanced JavaReplies: 13Last Post: 10-21-2009, 09:26 PM -
[SOLVED] Getting Data from a database
By AJG in forum New To JavaReplies: 8Last Post: 04-04-2008, 12:52 PM -
Data formatting for the <display:table>
By yuchuang in forum Web FrameworksReplies: 3Last Post: 12-14-2007, 10:52 AM -
formatting String
By bugger in forum New To JavaReplies: 1Last Post: 11-16-2007, 07:27 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks