Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 21st, 2005, 6:57 PM   #1
TechyDude
Newbie
 
Join Date: Dec 2005
Posts: 3
Rep Power: 0 TechyDude is on a distinguished road
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
TechyDude is offline   Reply With Quote
Old Dec 21st, 2005, 7:15 PM   #2
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
You have a class for a letter? Isn't that a tad pointless for the overhead?
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Dec 21st, 2005, 7:29 PM   #3
TechyDude
Newbie
 
Join Date: Dec 2005
Posts: 3
Rep Power: 0 TechyDude is on a distinguished road
my professor told me to start with a letter class first, then word, and then phrase (hardest). can u help me out plz
TechyDude is offline   Reply With Quote
Old Dec 21st, 2005, 9:34 PM   #4
B3TA_SCR1PT3R
Hobbyist Programmer
 
B3TA_SCR1PT3R's Avatar
 
Join Date: Jul 2005
Location: Dallas, Texas
Posts: 101
Rep Power: 0 B3TA_SCR1PT3R is an unknown quantity at this point
Send a message via AIM to B3TA_SCR1PT3R
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?
__________________
Hoes telling me to calm down but I'm like fuck that shit!
B3TA_SCR1PT3R is offline   Reply With Quote
Old Dec 21st, 2005, 9:53 PM   #5
TechyDude
Newbie
 
Join Date: Dec 2005
Posts: 3
Rep Power: 0 TechyDude is on a distinguished road
yes sir! any way to fix it?
TechyDude is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:35 PM.

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