Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.io.*;
- class Morse
- {
- public static void main(String[] args) throws IOException
- {
- Translate myTranslate = new Translate();
- myTranslate.fileLoader();
- String words = "I like potatoes";
- words = words.replaceAll(" ","");
- String[] letters = words.split("");
- for(int i=0; i<letters.length; i++){
- System.out.println(myTranslate.itemMatch(letters[i]));
- }
- System.out.println();
- }
- }
Add Comment
Please, Sign In to add comment