General Discussion Off-Topic Discussion and Enlightenment

NEED HELP! ANY ONE KNOW JAVA?

Thread Tools
 
Search this Thread
 
Old 10-23-2006, 11:42 PM
  #11  
0.0 BAR
 
HondaTuner's Avatar
 
Join Date: 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.
HondaTuner is offline  
Old 10-23-2006, 11:44 PM
  #12  
1.0 BAR
Thread Starter
 
95_civic_lx's Avatar
 
Join Date: 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 ----....
95_civic_lx is offline  
Old 10-23-2006, 11:49 PM
  #13  
3.0 BAR
 
FooK's Avatar
 
Join Date: Apr 2004
Posts: 9,800
Default Re: NEED HELP! ANY ONE KNOW JAVA?

java...slow poo poo...good luck
FooK is offline  
Old 10-23-2006, 11:54 PM
  #14  
1.0 BAR
Thread Starter
 
95_civic_lx's Avatar
 
Join Date: Mar 2006
Posts: 519
Default Re: NEED HELP! ANY ONE KNOW JAVA?

Originally Posted by ****
java...slow poo poo...good luck
?
95_civic_lx is offline  
Old 10-23-2006, 11:58 PM
  #15  
0.0 BAR
 
Oscar's Avatar
 
Join Date: Jun 2005
Location: WA
Posts: 0
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.
Oscar is offline  
Old 10-24-2006, 02:21 AM
  #16  
1.5 BAR
 
crxtuner's Avatar
 
Join Date: Jul 2005
Posts: 1,205
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?
crxtuner is offline  
Old 10-24-2006, 02:30 AM
  #17  
1.5 BAR
 
crxtuner's Avatar
 
Join Date: Jul 2005
Posts: 1,205
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");

}
}
}
crxtuner is offline  
Old 10-24-2006, 02:51 AM
  #18  
0.0 BAR
 
Oscar's Avatar
 
Join Date: Jun 2005
Location: WA
Posts: 0
Default Re: NEED HELP! ANY ONE KNOW JAVA?

o ----!! lol!1 that exactly what i was thikning too. nice, i remember something.
Oscar is offline  
Old 10-24-2006, 10:25 AM
  #19  
1.0 BAR
Thread Starter
 
95_civic_lx's Avatar
 
Join Date: 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
95_civic_lx is offline  
Old 10-24-2006, 12:34 PM
  #20  
0.0 BAR
 
Tom-Guy's Avatar
 
Join Date: Feb 2003
Posts: 0
Default Re: NEED HELP! ANY ONE KNOW JAVA?

Did you fail your class?
Tom-Guy is offline  


Quick Reply: NEED HELP! ANY ONE KNOW JAVA?



All times are GMT -5. The time now is 04:45 PM.