Fixed BUG0005
This commit is contained in:
parent
7f13ad0ce6
commit
c99d23eafd
1 changed files with 6 additions and 3 deletions
|
@ -801,6 +801,9 @@ public class Morse extends JFrame {
|
|||
} else {
|
||||
for (int c = input.length(); c > 0; c--) {
|
||||
if (input.toString().startsWith(" ")) {
|
||||
if(output.toString().endsWith(" ")){
|
||||
output.delete(output.length() - 3 , output.length());
|
||||
}
|
||||
output.append(" ");
|
||||
input.delete(0, 1);
|
||||
} else if (input.toString().startsWith("A")) {
|
||||
|
|
Reference in a new issue