aspose file tools*
The moose likes Beginning Java and the fly likes passing reference problem.......I think :confused: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "passing reference problem.......I think :confused:" Watch "passing reference problem.......I think :confused:" New topic
Author

passing reference problem.......I think :confused:

Jimmy Bonds
Ranch Hand

Joined: Jun 05, 2001
Posts: 38
Hi All-
Check out this code:

When I compiled and ran the code it displayed "6" as the output.
I expected 3 to be displayed
Can anyone explain this?
Thanks!
Jimmy-
------------------
yah, yah, I'm a newbie
[This message has been edited by Jimmy Bonds (edited June 22, 2001).]
rani bedi
Ranch Hand

Joined: Feb 06, 2001
Posts: 358
In your program you are actually not printing the return values from the functions cut and slice.
I have made the changes in ur code.


(edited by Cindy to format code)
[This message has been edited by Cindy Glass (edited June 22, 2001).]


Cheers,<br />Rani<br />SCJP, SCWCD, SCBCD
rani bedi
Ranch Hand

Joined: Feb 06, 2001
Posts: 358
In your program you are actually not printing the return values from the functions cut and slice.
I have made the changes in ur code.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing reference problem.......I think :confused: