aspose file tools*
The moose likes Beginning Java and the fly likes switching values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "switching values" Watch "switching values" New topic
Author

switching values

Norman Neaderhiser
Greenhorn

Joined: Mar 10, 2004
Posts: 6
Hello guys,
I have a school project that instructs me to exchange the values of two test scores. If test one equals 95 and test two equals 84 and I am using the method public void swapTests() how do I acomplish this?
Thank you for your help, you guys are a valuable asset for greenhorn like myself.
NN
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884


SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1824

What have you tried? Can you post your code? Is your problem in performing the actual swapping, or something else, like parameter passing?
We do enjoy helping, but you of course realize the various issues involved in just giving you the answer.


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
When you get this program working, just be sure to not be using it around my test scores. I like them very much as they are, thank you.
Now, to get some good help around here, as Joel suggested, we'll be needing some more effort and information on your part.
[ April 09, 2004: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Norman Neaderhiser
Greenhorn

Joined: Mar 10, 2004
Posts: 6
Hello Guys,
With a little common sense I have figured out what I need to do.
I works like a charm. I just had to keep playing with it.
Thanks NN
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: switching values