Click to See Complete Forum and Search --> : Simple Java problem. plz help


Relco
10-11-2006, 08:54 AM
Hi, im new to java and could really need your help


I am trying to make a program where the user inputs a 4 digit integer.
And i want to encrypt this number by replacing each digit by the sum of that digit plus 7
And then swapping the 1st digit with the 3rd and the 2nd digit with the 4th.

Could someone please show me how i could go about with this?

Thanks!

Khalid Ali
10-12-2006, 07:56 AM
if its that simple, then howcome you have to post it here for help?
Anyways, first make an attempt to solve this and post your code here with specific questions. If some one else will do your homework, you would not learn anything

agent_x91
10-19-2006, 03:31 AM
A hint though, to do the swapping you'll probably need to convert the integer to a String.