Problem?

im trying to write a progarm that first encrypt and decrypt a message.

But Im having trouble only on the decrypt part and i cannot compile can someone help me:

Loop an index i for all ints encrypted

append to plaintext the alphabet cahr at an idex

stored in encrypted

code that i had so far:

private void decrypt(){

for (int i = 0; i < encrypted.length(); i++)

{

plaintext.append();

}

}

}

[483 byte] By [JohnMLa] at [2007-11-27 2:45:31]
# 1

You have to provide details. Paste in the exact, complete error message and make it clear which line it's talking aobut.

When you post code, please use[code] and [/code] tags as described in [url=http://forum.java.sun.com/help.jspa?sec=formatting]Formatting tips[/url] on the message entry page. It makes it much easier to read.

jverda at 2007-7-12 3:13:08 > top of Java-index,Java Essentials,New To Java...
# 2

Another suggestion is to post an SSCE, a Short, Self Contained, Compilable Example (see [url=http://homepage1.nifty.com/algafield/sscce.html]this site[/url] for more details).

This should be the shortest segment of code that is self contained and can compile all on its own and also demonstrates your problem.

Good luck.

/Pete

petes1234a at 2007-7-12 3:13:08 > top of Java-index,Java Essentials,New To Java...
# 3
Next time, just continue in your original thread. Don't post the same question multiple times.Continued here: http://forum.java.sun.com/thread.jspa?threadID=5166745
jverda at 2007-7-12 3:13:09 > top of Java-index,Java Essentials,New To Java...