Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-04-2005, 03:20 AM   PM User | #1
cassio
New to the CF scene

 
Join Date: Feb 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
cassio is an unknown quantity at this point
need the long version for java

what is the extended version of
Code:
{ Totals[pos]= Totals[pos] + Cart[pos];
		if(Cart[pos]>0)
im a total newb to java and am wondering the long version of the above code.
thanks,

Ian
cassio is offline   Reply With Quote
Old 03-04-2005, 04:57 AM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,223
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
Huh? What do you mean by long version?
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 03-04-2005, 09:25 AM   PM User | #3
shmoove
Regular Coder

 
Join Date: Dec 2003
Posts: 367
Thanks: 0
Thanked 0 Times in 0 Posts
shmoove is an unknown quantity at this point
Quote:
Originally Posted by Spookster
Huh? What do you mean by long version?
The version that compiles perhaps?

shmoove
shmoove is offline   Reply With Quote
Old 03-04-2005, 04:54 PM   PM User | #4
cassio
New to the CF scene

 
Join Date: Feb 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
cassio is an unknown quantity at this point
if im not mistaken in java 1.5 you can do this but in the later versions you cant and there is an expanded way to write this, I would like to know the long way to write it so I can grasp the concept a bit better.

HTH,

Ian
cassio is offline   Reply With Quote
Old 03-08-2005, 08:32 AM   PM User | #5
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
Isn't it the long way already? Because the short way is this:
Code:
Totals[pos] += Cart[pos];
if (Cart[pos]>0)
...
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:37 PM.


Advertisement
Log in to turn off these ads.