NEED HELP! ANY ONE KNOW JAVA?
I need help formatting the string output of java...so my table looks like ---- and i dont have any colums!
|
Re: NEED HELP! ANY ONE KNOW JAVA?
I know java pretty well. I drink a couple cups of it every day. 8)
|
Re: NEED HELP! ANY ONE KNOW JAVA?
i know java
|
Re: NEED HELP! ANY ONE KNOW JAVA?
heres my code....some one help me..this ---- is due tomorow
import acm.program.*; import acm.io.*; public class Lab6 extends Program { public void run () { IOConsole io = getConsole (); final int LAST_KGS = 199; final double POUNDS_PER_KG = 2.2; int pounds = 25; for (int KGS = 1; KGS<LAST_KGS; KGS = KGS +2) { String s = String.format("%3d\t\t%3.2f\t", KGS, KGS * POUNDS_PER_KG); io.print( KGS ); io.print(KGS * POUNDS_PER_KG +"\t"); io.print(pounds +"\t\t"); io.print(pounds/POUNDS_PER_KG +"t\t\t"); } } } |
Re: NEED HELP! ANY ONE KNOW JAVA?
haha, i made a thread on this a few months ago. no one really helped me :-/
|
Re: NEED HELP! ANY ONE KNOW JAVA?
Originally Posted by d112crzy
haha, i made a thread on this a few months ago. no one really helped me :-/
|
Re: NEED HELP! ANY ONE KNOW JAVA?
i would if i knew how. I forgot everything i learned in that class.
|
Re: NEED HELP! ANY ONE KNOW JAVA?
some one knows......
|
Re: NEED HELP! ANY ONE KNOW JAVA?
damn havent gotten that far yat in school. doin vb right now. i can tear that ---- up fo' sho' !!!!! sorry i cant help but i can if you do vb instead.
|
Re: NEED HELP! ANY ONE KNOW JAVA?
---- is due tomorow morning.....looks like everything is good but the string out put modifier....dont know how to do those....
String s = ----------------------------------------- |
All times are GMT -5. The time now is 07:59 PM. |
© 2024 MH Sub I, LLC dba Internet Brands