Re: Homework Help please!
Is it like decoding morse code?
Re: Homework Help please!
It is definitely morse code.
I'll start off.
Code:
public static void doLetter(char letter) {
if letter.equals(t) {
dash();
space();
}
}
For morse code goto: http://www.google.co.uk/imgres?q=mor...:0&tx=85&ty=23
Re: Homework Help please!
I receive an error when I do this. Something about how cannot compare..and it needs to be a string.
It might be morse code, im not sure, but In the end, i have to type in the word "to" and it does the dashes and periods. Any more help? ):
Re: Homework Help please!
char are primitives, and you cannot call methods on primitives. Instead check if the letter == 't', not if letter.equals(t) (which makes no sense any way since t is then thought to be an undeclared variable.
Re: Homework Help please!
That worked, setting it to ==. Now I just need to get the pattern set (: Thanks for the help. If i need more help ill post back!