This is a Java query.
I really need a reverse function application (that is about 15 lines of code), can anyone help???
I need it asap & I will be eternally grateful if you can supply me with one.
Thanks in advance!
Ghostfleet
Printable View
This is a Java query.
I really need a reverse function application (that is about 15 lines of code), can anyone help???
I need it asap & I will be eternally grateful if you can supply me with one.
Thanks in advance!
Ghostfleet
Sorry, I wish I knew Java. Maybe check with LagMonster.
------------------
OS/400...At least it's not Microsoft.
Check some of the following pages:
http://javaboutique.internet.com/
http://javaboutique.internet.com/resources/javaatwork/
http://www.javacats.com/US/
http://www.freecode.com/
http://www.codebrain.com/
One of them may have the code you are looking for.
------------------
Death is lighter than a feather - duty heavier than a mountian.
goto http://www.digitalrice.com/kaparo/
Click on decompilers Scroll down to java they have about 3 of em.
Try it out.(I don't know how well any of them work)
Thank You for your help so far everyone....but thats not exactly what I am looking for.
I am looking for a Java application that....
1. Looks sort of like a DOS prompt.
2. When you type in "12345" and hit enter, it will then display "54321".
Any ideas?
I am at work right now so. I can't really compile anything, but does it have to be java, can it be VB script?
It is for my cousin. She needs it for her Java class at college. I assume that it is Java only.
Thank you for your help! https://forums.windrivers.com/
Ghostfleet
have you tried a mirror? that could work
just kidding try this
tell your cousin that the program is very easy. Just get the string from the command line and put it in an array. Then output the string backwards using the array index one number at a time, start from the end of the array and work your way to the first letter.
Biggs is right about this one, however, I don't belive you can use arrays in java...
Don't take my word for it tho...I really only use Javascript, not Java (YES there is a difference http://forums.windrivers.com/cgi-bin...ilies/cwm1.gif )
------------------
-- What? No more Jolt!?!?
You can use arrays in java. I am currently taking java in school.
I believe you can also do a bubble sort and have it work that way...not sure, never used Java, but is close enough to C that it might work.
Yes, you can do arrays in Java, and of all the possibilities listed here, Biggs has the best one. If that's your cousin's entire assignment--to output a string of characters backward--then that's most likely all the professor is looking for.Quote:
<font face="Verdana, Arial" size="2">Originally posted by BIGGS:
Just get the string from the command line and put it in an array. Then output the string backwards using the array index one number at a time, start from the end of the array and work your way to the first letter.</font>
Assign the inputs to arr[0] (the first element in the array) through arr[4] (the fifth element in the array), and then have the program output them starting with arr[4] and working backward to arr[0].
ghostfleet, i had to do one of those as one of my assignments for skool, an i still have it kickin around on my HD somewhere.. get back to me an ill send it to ya
------------------
Access to computers should be unlimited and total.
- hacker ethic
Awesome!!!
If you can find it PLEASE send it to my email or post it here.
Thanks,
Ghostfleet
[email protected]