Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   encrypter/decrypter - help (http://www.programmingforums.org/showthread.php?t=7675)

TechyDude Dec 21st, 2005 7:57 PM

encrypter/decrypter - help
 
hey

i'm trying to make a simple encrypter/decrypter. i'm very new to java. i have 80% of the work done: the letter class and the world class. Encryption and decryption for word and letter is working perfect, but I'm having trouble with the Phrase class. I have been stuck on this class from 2 weeks now, and my final project is due tomorrow. If someone can help me out, i'll appreciate it very much. this is the link to my project (i use JCreator):

http://66.29.37.125/Encrypter.zip

Dameon Dec 21st, 2005 8:15 PM

You have a class for a letter? Isn't that a tad pointless for the overhead?

TechyDude Dec 21st, 2005 8:29 PM

my professor told me to start with a letter class first, then word, and then phrase (hardest). can u help me out plz

B3TA_SCR1PT3R Dec 21st, 2005 10:34 PM

:

String Temp = "";
                int Counter = 0;
                for (int i = 0;i<thePhrase.length();i++)
                {
                        if(thePhrase.charAt(i)!=' ') //if there is no space, execute the code
                        {
                                Temp = thePhrase.charAt(i);
                                Counter ++;
                        }else //if space is detected,
                        {
                                //mafa
                        }
                }

your getting the same "incompatible types" as me right...int != char?
is this the problem thats troubling you?

TechyDude Dec 21st, 2005 10:53 PM

yes sir! any way to fix it?


All times are GMT -5. The time now is 8:56 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC