General Discussion Off-Topic Discussion and Enlightenment

NEED HELP! ANY ONE KNOW JAVA?

Thread Tools
 
Search this Thread
 
Old Oct 23, 2006 | 11:42 PM
  #11  
HondaTuner's Avatar
0.0 BAR
 
Joined: Dec 2003
Posts: 0
Default Re: NEED HELP! ANY ONE KNOW JAVA?

If you had asked two years ago we'd be golden.

Man it looks weird to see that ish again.
Old Oct 23, 2006 | 11:44 PM
  #12  
95_civic_lx's Avatar
Thread Starter
1.0 BAR
 
Joined: Mar 2006
Posts: 519
Default Re: NEED HELP! ANY ONE KNOW JAVA?

yea...first semester in collge....computer science major....teacher sucks *** @ teaching....and the book i short on this ----....
Old Oct 23, 2006 | 11:49 PM
  #13  
FooK's Avatar
3.0 BAR
 
Joined: Apr 2004
Posts: 9,790
Default Re: NEED HELP! ANY ONE KNOW JAVA?

java...slow poo poo...good luck
Old Oct 23, 2006 | 11:54 PM
  #14  
95_civic_lx's Avatar
Thread Starter
1.0 BAR
 
Joined: Mar 2006
Posts: 519
Default Re: NEED HELP! ANY ONE KNOW JAVA?

Originally Posted by ****
java...slow poo poo...good luck
?
Old Oct 23, 2006 | 11:58 PM
  #15  
Oscar's Avatar
0.0 BAR
 
Joined: Jun 2005
Posts: 0
From: WA
Default Re: NEED HELP! ANY ONE KNOW JAVA?

I hated my CSE class. it was so ------- boring. it was easy, but boring. too bad i dont remember any of it.

you should try googling java forums.
Old Oct 24, 2006 | 02:21 AM
  #16  
crxtuner's Avatar
1.5 BAR
 
Joined: Jul 2005
Posts: 1,204
Default Re: NEED HELP! ANY ONE KNOW JAVA?

i took comp sci for a semester so i know how to perform many different loops and or strings. What are you trying to perform a kg-lbs program?
Old Oct 24, 2006 | 02:30 AM
  #17  
crxtuner's Avatar
1.5 BAR
 
Joined: Jul 2005
Posts: 1,204
Default Re: NEED HELP! ANY ONE KNOW JAVA?

really this probably wont work but keep in mind i havent done this stuff for awhile, i believe your issue is in your for loop because it seems you are calling on values that are not defined above. Also keep in mind i cant remeber how the brackets are supposed to be used when it comes for seperation of tasks but review all of them. 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;
int KGS = 1;

for (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");

}
}
}
Old Oct 24, 2006 | 02:51 AM
  #18  
Oscar's Avatar
0.0 BAR
 
Joined: Jun 2005
Posts: 0
From: WA
Default Re: NEED HELP! ANY ONE KNOW JAVA?

o ----!! lol!1 that exactly what i was thikning too. nice, i remember something.
Old Oct 24, 2006 | 10:25 AM
  #19  
95_civic_lx's Avatar
Thread Starter
1.0 BAR
 
Joined: Mar 2006
Posts: 519
Default Re: NEED HELP! ANY ONE KNOW JAVA?

doesnt help b.c in the for loop the variable has to be inthere if not the complier trips out...the math i can fix i just need help with the output format
Old Oct 24, 2006 | 12:34 PM
  #20  
Tom-Guy's Avatar
0.0 BAR
 
Joined: Feb 2003
Posts: 0
Default Re: NEED HELP! ANY ONE KNOW JAVA?

Did you fail your class?



All times are GMT -5. The time now is 05:26 AM.